shiva
shiva

Reputation: 5499

no module named `numpy` in python 3.6 interpreter

I'm using Python 3.6 v in Ubuntu 18.04LTS. I installed numpy package using pip. When i used Python 3.6 interpreter it throws

ModuleNotFoundError: No module named 'numpy' and for Python2.7

interpreter it didn't throws any error. Any suggestions will be very helpful. I searched in google and github nothing helped me.

Upvotes: 2

Views: 3845

Answers (1)

Thalish Sajeed
Thalish Sajeed

Reputation: 1351

Based on the outputs you posted -

your pip and python are pointing to version 2.7

if you try pip install numpy you will install into your python 2.7 env

if you start python interpreter by default you'll be starting python2.7 and you should be able to find numpy package installed.

if you want to do the same in python3.xx use python3 , pip3 or use virtual environments

Upvotes: 1

Related Questions