Search code examples
pythonwindowstensorflowpipgpu

Install an older version of Tensorflow GPU


I was tring to install older version of tensorflow gpu on windows 10:

pip install tensorflow-gpu==1.4.0

And I get an error like this other post impling there is no windows version

And I'm wondering if there is a way to get the list of functionning windows tensorflow version

Thanks in advance

Edits

It seems that tensorflow GPU v1.4.0 doesn't work on python 3.7 therefore creating another enviromment and downgrading your python version to 3.6 may resolve the issue.

by using anaconda you can do it this way

conda create -n py36 python=3.6
conda activate py36
pip install tensorflow-gpu==1.4.0

note that another older version of CUDA is required for older version of tensorflow (I had to install CUDA 8.0)


Solution

  • If you go to the pypi page of tensorflow 1.4, you can see, that only whl files up to python 3.6 are available. I am guessing that you are either using 3.7 or 3.8. That is why

    pip install tensorflow-gpu==1.4.0
    

    is not working for you. There simply is no installation candidate for tensorflow-gpu for python versions other than 2.7, 3.3, 3.4, 3.5, 3.6

    I think you have two options, since you mentioned that you have conda:

    Create an environment

    Create an environment that is using python 3.6 and then use pip install like you originally intended

    conda create -n py36 python=3.6
    conda activate py36
    pip install tensorflow-gpu==1.4.0
    

    Try a channel that has your version

    You can use the search function on the website to locate a channel that has your specific version available, for 1.4, you should be able to do:

    conda install -c cjj3779 tensorflow-gpu
    

    No version specification neccessary, as the only available version in that channel is 1.4