Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

In the terminal I did pip install numpy. It seems as if I can access numpy in the terminal but not in the shell.

How can I import numpy into the shell? I keep getting import error: no module named numpy.

I am using python 3.

Many thanks.

share|improve this question
1  
What operating system are you on? Do you have multiple versions of Python installed? You might want to look at this question. –  BrenBarn 14 hours ago
    
I am using python 3.4 with pycharm on a mac. I did 'pip install numpy' in the terminal but that installs it for 2.7, not 3.4. That's why when I import bumpy in python3, it doesn't find anything. –  kits 4 hours ago
    
Did you try pip3 install numpy? –  BrenBarn 4 hours ago
    
That worked! Thanks so much. –  kits 4 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.