I am trying to install TensorFlow by Anaconda(My Python is 3.5.2 edition).
When I run:
(tensorflow)C:> pip install --ignore-installed --upgrade h
I had the same problem on several Windows machines (W7, W8.1 and W10). At last I solved the problem in the same way in all of them:
Create a environment named tensorflow by invoking the following command:
conda create -n tensorflow python=3.5
Activate the conda environment by issuing the following command:
activate tensorflow
Install TensorFlow:
conda install -c conda-forge tensorflow
Install Jupyter and Spyder at least, but surely you will need to install scipy too for example:
conda install spyder
conda install jupyter
After that you can check if all is correct by invoking python and trying the next program:
import tensorflow as tf
hail = tf.constant('Hello World')
session = tf.Session()
print(session.run(hail))
Now you can check if Spyder works. Exit from Python, invoke Spyder from Anaconda prompt and try de program.
If you have any problem with iPython, install it on the tensorflow enviroment.
conda install ipython
If you want to update spyder write the following command:
conda update spyder
Remember to launch Spyder from the Anaconda prompt after you have activated the tensorflow enviroment.
I hope it works for you.
Edited: TensorFlow, since version 1.2.0, is compatible with Python 3.6, so you can already install the latest version of Anaconda (4.4.0 | Release Date: May 31, 2017), which incorporates Python 3.6.
I had the same error and fixed it by running conda update --all
first.
BUt be careful with conda update: (https://github.com/ContinuumIO/anaconda-issues/issues/830) Updating packages
conda: 4.0.5-py35_0 --> 4.1.1-py35_0
conda-env: 2.4.5-py35_0 --> 2.5.0-py35_0
matplotlib: 1.5.1-np110py35_0 --> 1.5.1-np111py35_0
mkl: 11.3.1-0 --> 11.3.3-1
mkl-service: 1.1.2-py35_0 --> 1.1.2-py35_1
numexpr: 2.5-np110py35_0 --> 2.5.2-np111py35_1
numpy: 1.10.4-py35_0 --> 1.11.0-py35_1
pandas: 0.18.0-np110py35_0 --> 0.18.1-np111py35_0
scikit-learn: 0.17.1-np110py35_0 --> 0.17.1-np111py35_1
scipy: 0.17.0-np110py35_0 --> 0.17.0-np111py35_4
will break Scripts/activate.bat under Windows if the install path contains spaces. (Replacing activate.bat with the original one just works fine.)
I solved problem by below command
pip install --upgrade
https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl