Import error: no module named numpy Anaconda

I have a very similar question to this question. I have only one version of python 3.5 installed on my 64-bit Windows 7. I installed Anaconda3.4 through the official website, as suggested in this question. Installation went fine, but when I want to import (I just type python from the command line)

import numpy

Import error:No module named numpy

Then I go out and type

pip install numpy 

The requirement has already been met (use --upgrade to upgrade): numpy in d: \ program fi le \ anaconda3 \ Lib \ site packages

I know this is probably a super basic question, but I was still studying ... Thanks

+6
source share
4 answers

Anaconda3, numpy. pip. , Anaconda, , , .

where python ( where python3), , . Anaconda, , , , , .

+5

Anaconda python, , python, , , anaconda. , , python . , anaconda ( anaconda) .

    where python
+2

-, NumPy :

NumPy

pip

pip install numpy

.

+1

, numpy , , anaconda.

.

$ source activate {your environment name}

NumPy

$ conda install numpy

I found that this was the case in the environment that I created using pycharm.

Installing it locally fixed the problem.

+1
source

All Articles