Search code examples
pythonpipconda

I cannot install Tensorflow Version 1.15 through pip


I have checked my pip version and got the following output:

Requirement already up-to-date: pip in 
./anaconda3/envs/runlee_python3/lib/python3.8/site-packages (20.1)

I have a specific situation in which I have to use version 1.15 of Tensorflow, but when I try to install it, it seems like it can‘t find this specific version.

pip install tensorflow==1.15
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3)
ERROR: No matching distribution found for tensorflow==1.15

I can also not find version 1.15 when listing all available options.

What am I missing?


Solution

  • You are using python 3.8, which was not officially supported when tensorflow was at version 1.15. You can also check on pypi, there are no files available for cp38, even for 2.10 Onle the versions listed by your command have a cp38 whl file available, see here

    Since you have conda, simply create a virtual env with the required version

    conda create -n tf python=3.7
    

    then install tensorflow in this env