Home > other >  pip could not find tensorflow 2.0 or 2.1
pip could not find tensorflow 2.0 or 2.1

Time:11-13

Silly me to ask such a question (asked here as well 1, 2 ). I tried to install TensorFlow 2.0 or 2.1 on a Ubuntu system for mask-rcnn package, but pip could not find the version of TensorFlow that I desperate need. Could you please let me know why pip could not find tf2.0 or tf2.1? Then how to install tf2.0 or tf2.2?

albert@GIGABYTE:~$ pip install tensorflow==2.0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow==2.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.7.0rc0, 2.7.0rc1, 2.7.0)
ERROR: No matching distribution found for tensorflow==2.0

CodePudding user response:

tensorflow 2.0 and tensorflow 2.1 require Python 2.7 and 3.4-3.7 but not higher. Your Python seems to be higher version (from the list of tensorflow versions I think you use 3.8). Either downgrade Python or use higher version of tensorflow.

  • Related