![]() |
Help installing NumPy - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: Help installing NumPy (/thread-8419.html) Pages:
1
2
|
RE: Help installing NumPy - sparkz_alot - Feb-20-2018 Firstly. in the command terminal, type PATH you should see something similar to: Note that the two locations "C:\Python36\" and "C:\Python36\Scripts\" must be included within the PATH string. (The actual location will depend on where you installed Python). If they are not there, you must add them. See https://www.computerhope.com/issues/ch000549.htmIn PyCharm in the upper left corner, click on File -> Default Settings -> Project Interpreter. You should see the file location of your python.exe on the right hand side, as well as any installed modules. RE: Help installing NumPy - snippsat - Feb-20-2018 (Feb-20-2018, 12:35 AM)Larry Wrote: I think it would just be simpler to download numpy to the correct place--if I could find the correct place?? Any suggestions?No no it's in the correct place in Python 3.6 as you should use and have tested from cmd, so read PyCharm Doc again again and point interpreter to 3.6 in PyCharm. Look at Project Interpreter --> Show all you get a list and choose 3.6 path. RE: Help installing NumPy - Larry - Feb-20-2018 Large program works fine when using Python. Only when I use PyCharm does PyCharm have trouble finding numpy. I used pip and verified numpy is downloaded. Numpy is located at C:\Python3.6.1\include. RE: Help installing NumPy - sparkz_alot - Feb-20-2018 Well you have something jazzed up, because numpy should be located at "C:\Python3.6.1\Lib\site-packages\" RE: Help installing NumPy - Larry - Feb-20-2018 I went to Project Interperter and chose 3.6 path. Same issue: C:\Users\larry\PycharmProjects\PProject1\venv\Scripts\python.exe C:/Users/larry/PycharmProjects/PProject1/test1.py Traceback (most recent call last): File "C:\Users\larry\PycharmProjects\PProject1\numpy\__init__.py", line 126, in <module> from numpy.__config__ import show as show_config ModuleNotFoundError: No module named 'numpy.__config__' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/larry/PycharmProjects/PProject1/test1.py", line 5, in <module> import numpy as np # Import number program File "C:\Users\larry\PycharmProjects\PProject1\numpy\__init__.py", line 131, in <module> raise ImportError(msg) ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. I think I am making a mess???????????? Well you have something jazzed up, because numpy should be located at "C:\Python3.6.1\Lib\site-packages\" Sparkz-alot. Near handle! I verified numpy is "also" located in "C:\Python3.6.1\Lib\site-packages\" Maybe I should remove it from include?????? RE: Help installing NumPy - sparkz_alot - Feb-20-2018 Yeah, I think so. If it were me, I would uninstall Python and reinstall following our tutorial https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows This will ensure Python is installed and will work correctly. You should then be able to go into PyCharm and select you default interpreter under Default Settings. RE: Help installing NumPy - Larry - Feb-20-2018 I uninstalled PyCharm and Python--and reinstalled them. Then I downloaded numpy. Same issue --can't find numpy module. Giving up for the night. Thanks for all your help--sincerely! RE: Help installing NumPy - Larz60+ - Feb-20-2018 A car won't run without a key. PyCharm will not work without an interpreter. You can re-install until the cows come home, it still won't work without setup. Here is step by step to set up
RE: Help installing NumPy - Larry - Feb-20-2018 Larz60+, From Larry almost 80. I spent about 8 hours working on this one issue, unsuccessfully. I did not understand your nicely documented instructions, but I followed them. And PyCharm now sees NumPy and my sizable program works. Thanks for your great knowledge and the time you took to assist me. |