install tensorflow with specific version on Anaconda

微笑、不失礼 提交于 2020-01-01 09:35:12

问题


Tensorflow has multiple versions, if I want to install a specific version in Anaconda, which command should I use.


回答1:


This is probably the simplest way to do it:

pip install --ignore-installed --upgrade tensorflow==1.4

If you want to see all available versions, you can check out https://pypi.python.org/pypi/tensorflow/json

I would highly recommend you use virtualenv or conda to isolate your tensorflow installation, especially if you want to play-test different versions and the CPU/GPU versions.




回答2:


I am assuming that you are using Windows, python3.5, and CPU version of tensorflow.

let's first create conda environment.

C:> conda create -n tensorflow python=3.5 
C:> activate tensorflow
 (tensorflow)C:>  # Your prompt should change 

After creating the conda environment successfully, issue the correct command to install the specific version. I will guide you through installing three different versions.

To install version r1.0

(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl 

To install version r1.3

(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.3.0rc1-cp35-cp35m-win_amd64.whl 

To install master version

(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.0-cp35-cp35m-win_amd64.whl 

let me know if this is what you are looking for



来源:https://stackoverflow.com/questions/45425896/install-tensorflow-with-specific-version-on-anaconda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!