Reputation: 615
Hi I have installed tensor flow in my 64 bit system using Window OS using pip3 install --upgrade tensorflow
. Now I can able to work using tensorflow in my command prompt.
But while I'm trying to use it in my Anaconda ,Spyder (Python 2.7) I'm getting error message in import tensorflow as tf
statement. It is saying No module named tensorflow
. I'm new to python & tensorflow. Can you please help me to solve this issue?
Thanks
Upvotes: 1
Views: 2765
Reputation: 304
I solved the problem by uninstalling ipython and installing jupyter within the environment.
source activate myenv
conda uninstall ipython
conda install jupyter
Upvotes: 1
Reputation: 970
Create a new conda environment. Your steps to create one with python=3.5 is correct. if you do not do this then you will have errors.
Once you have created that environment make sure you enter it: activate envName
for example. You should get something like:
(envName) C:/> _
Then you should be able to install using pip install tensorflow
Once that has installed then run conda list
to ensure that your conda env is happy that Tensorflow is installed. Then test it out by running
```
python
>>>import tensorflow as tf
```
Tensorflow on Windows will NOT work on anything but Python 3.5 at time of writing. Please remember to activate you conda environment by typing activate yourenvName
and ensure that your environment is 3.5 when you create it.
Upvotes: 0