Feb-19-2018, 06:52 PM
Pages: 1 2
Feb-19-2018, 07:20 PM
Did you try using the built-in python package manager, pip?
pip install numpy
should work fine.Feb-19-2018, 08:48 PM
Thanks.
I just tried that. I typed it into the Python shell and I get the following:
>>> pip install numpy
SyntaxError: invalid syntax
>>>
I am using Python 3.6.1 and Windows 10 operating system.
I just tried that. I typed it into the Python shell and I get the following:
>>> pip install numpy
SyntaxError: invalid syntax
>>>
I am using Python 3.6.1 and Windows 10 operating system.
Feb-19-2018, 09:06 PM
Try it at your command line, instead of at the interactive python interpreter. If you're in Windows 10, open the start menu and type
cmd
, and then run it in there.Feb-19-2018, 09:13 PM
Not from interactive shell,as mention it's from(cmd).
Here how it should work,if not work like this look at Python 3.6 and pip installation under Windows.
Here how it should work,if not work like this look at Python 3.6 and pip installation under Windows.
C:\ # Check Python λ python -V Python 3.6.4 # Check pip C:\ λ pip -V pip 9.0.1 from c:\python36\lib\site-packages (python 3.6) # Install numpy C:\ λ pip install numpy Collecting numpy Downloading numpy-1.14.0-cp36-none-win32.whl (9.8MB) 100% |████████████████████████████████| 9.8MB 83kB/s Installing collected packages: numpy Successfully installed numpy-1.14.0 # Test that it work C:\ λ python Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ '1.14.0' >>> exit() C:\
Feb-19-2018, 09:54 PM
Thanks,
Yes, the cmd worked from the scripts directory. It indicated that numpy was all ready installed, which is correct. The real problem I am having is PyCharm doesn't recognize numpy. I keep getting the following error using PyCharm:
File "C:/Users/larry/PycharmProjects/PProject1/BJ rev E.py", line 14, in <module>
import numpy as np # Inport number program
ModuleNotFoundError: No module named 'numpy'
If I run the program from Python it works OK, but PYCharm gives the error.
Yes, the cmd worked from the scripts directory. It indicated that numpy was all ready installed, which is correct. The real problem I am having is PyCharm doesn't recognize numpy. I keep getting the following error using PyCharm:
File "C:/Users/larry/PycharmProjects/PProject1/BJ rev E.py", line 14, in <module>
import numpy as np # Inport number program
ModuleNotFoundError: No module named 'numpy'
If I run the program from Python it works OK, but PYCharm gives the error.
Feb-19-2018, 10:36 PM
Configuring Python Interpreter to point to 3.6.
Feb-20-2018, 12:15 AM
Thanks Snippsat. But I think Configuring Python virtual environment is well beyond my capabilities. The first instruction is "In the Settings/Preferences dialog, click Project Interpreter. I don't know where the Settings command/Preferences is?
I downloaded again PyCharm, this time to the Python directory. Still doesn't recognize numpy. I would remove the numpy commands from my very large program--but there are many of them.
I can't believe this seemingly simple issue can be this difficult????????????
Still looking for a reasonable simple solution.
Larry
I downloaded again PyCharm, this time to the Python directory. Still doesn't recognize numpy. I would remove the numpy commands from my very large program--but there are many of them.
I can't believe this seemingly simple issue can be this difficult????????????
Still looking for a reasonable simple solution.
Larry
Feb-20-2018, 12:28 AM
(Feb-20-2018, 12:15 AM)Larry Wrote: [ -> ]ut I think Configuring Python virtual environment is well beyond my capabilities. The first instruction is "In the Settings/Preferences dialog, click Project Interpreter. I don't know where the Settings command/Preferences is?Scroll down the the doc link has
Configuring a local interpreter
and Viewing the list of available interpreters
.Feb-20-2018, 12:35 AM
I think it would just be simpler to download numpy to the correct place--if I could find the correct place?? Any suggestions?
Pages: 1 2