Joe
Joe

Reputation: 659

Python "ImportError: No module named numpy"

Okay so I'm fairly new to Python, I ran the commands

sudo easy_install pip
sudo pip install numpy

Afterwards, I typed python followed by import numpy and got the error ImportError: No module named numpy

Did I miss something? Do I need to add something to sys.path?

Upvotes: 2

Views: 6212

Answers (1)

Joe
Joe

Reputation: 659

I solved it, I had to add a path where everything was installed to my PYTHONPATH env variable. I don't know why the installer didn't automatically do that.

Upvotes: 3

Related Questions