import numpy as np
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
I DL'd Python 2.7.13 a few days ago, I did "pip install -- upgrade numpy" a few minutes ago. Both are here but something is wrong with the setup. Can you tell, I'm a clueless noob.
Okay, good to know. Sure enough Python3 has no trouble finding numpy. Is there a way to specify that I want a numpy for 2.7? BTW, Linux Slackware.
You can use:
pip2.7 install packagename
No module named numpy It means you need to install Numpy.
You can install it using this command pip install numpy
make sure you have installed pip
(Sep-16-2017, 01:47 AM)rdx Wrote: [ -> ]I DL'd Python 2.7.13 a few days ago
May I ask why you are using version 2.7.13 and not the latest 3.6.2? Also, if you are using Windows, are you're Environmental Variables correct?
I am using 2.7 because I am trying to decipher a program written with it. Personally I don't know 2.7 from 3 and I am suspicious of a "language" that has concurrent dialects. I have a program that I got from pypi and I'm just trying to make it work but I'm new to python and the syntax is hard to read so I am struggling.
FYI, not Windows, Linux Slackware 14.2
If you found a package in PyPi that doesn't have a python 3 version, I wouldn't use it.
That pretty much indicates that the package has been abandoned.
Quote:Personally I don't know 2.7 from 3 and I am suspicious of a "language" that has concurrent dialects
?? Python 3 has been around since December 3rd, 2008, and it is better than ever.
I doubt that I will ever use python 2.7 again, It's ancient history.
Python 2.7 will only be supported for a few more year