install tensorflow with specific version on Anaconda

前端 未结 3 1699
后悔当初
后悔当初 2021-02-02 02:33

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

3条回答
  •  旧巷少年郎
    2021-02-02 03:00

    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

提交回复
热议问题