I installed the new version python 3.6 with the anaconda package. However i am not able to install tensorflow. Always receive the error that
tensorflow_gpu-1.0.0rc2
This is what I did for Installing Anaconda Python 3.6 version and Tensorflow on Window 10 64bit.And It was success!
Download Anaconda Python 3.6 version for Window 64bit.
Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow
Activate the conda environment by issuing the following command:
C:> activate tensorflow
(tensorflow)C:> # Your prompt should change
Download “tensorflow-1.0.1-cp36-cp36m-win_amd64.whl” from here. (For my case, the file will be located in “C:\Users\Joshua\Downloads” once after downloaded).
Install the Tensorflow by using following command:
(tensorflow)C:>pip install C:\Users\Joshua\Downloads\ tensorflow-1.0.1-cp36-cp36m-win_amd64.whl
This is what I got after the installing:
Validate installation by entering following command in your Python environment:
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
If the output you got is 'Hello, TensorFlow!',that means you have successfully install your Tensorflow.
According to :https://anaconda.org/intel/tensorflow
To install this package with conda run:
conda install -c intel tensorflow
pip install To install this package with pip:
pip install -i https://pypi.anaconda.org/intel/simple tensorflow
I use this method as told by one of the user: This is what I did for Installing Anaconda Python 3.6 version and Tensorflow on Window 10 64bit.And It was success!
Go to https://www.continuum.io/downloads to download Anaconda Python 3.6 version for Window 64bit. Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow Activate the conda environment by issuing the following command:
C:> activate tensorflow (tensorflow)C:> # Your prompt should change Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/enter code here download “tensorflow-1.0.1-cp36-cp36m-win_amd64.whl”. (For my case, the file will be located in “C:\Users\Joshua\Downloads” once after downloaded) Install the Tensorflow by using following command:
(tensorflow)C:>pip install C:\Users\Joshua\Downloads\ tensorflow-1.0.1-cp36-cp36m-win_amd64.whl
but nothing happens in the prompt. It starts from the new line with the tensorflow as if nothing was written. Whats the problem?
For Windows 10 with Anaconda 4.4 Python 3.6:
1st step) conda create -n tensorflow python=3.6
2nd step) activate tensorflow
3rd step) pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp36-cp36m-win_amd64.whl
I will simply leave this here because none of the other approaches worked for me. Also, I can look it up myself when I need it for new devices.
conda create --name tensorflow
conda activate tensorflow
conda search tensorflow
for all available TensorFlow versions1.14
was installed): conda install -c conda-forge tensorflow=YOUR_VERSION
.dll
-File to the Windows\System32
folderNow it should work like a charm!
If it still doesn't work, try this, it worked for me:
Open Anaconda-Prompt:
Python 3.6
like this: conda create --name tensorflow_env python=3.6
conda activate tensorflow
conda install tensorflow=YOUR_VERSION
(not forge, just like this!)If you want to use your GPU, do it the same way as described above, with the only difference to install tensorflow-gpu
instead if tensorflow
.
And, you must install the newest NVIDIA driver for your GPU, you can find and choose the right one here.
(Yes, in TF 2 there's both, a CPU and GPU support, in the "normal" library. However, if you install tensorflow-gpu
via conda, it installs the CUDA and cudNN etc. you need automatically for you - also the right versions. This way easier and faster.)
Try this one.
pip install https://anaconda.org/intel/tensorflow/1.2.1/download/tensorflow-1.2.1-cp36-cp36m-linux_x86_64.whl
Source: https://software.intel.com/en-us/articles/intel-optimized-tensorflow-wheel-now-available