Could not find a version that satisfies the requir

2019-01-17 10:06发布

问题:

I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, ...), but when I tried installing Tensorflow it didn't install and I got the error message:

Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

Then I tried installing tensorflow from the command prompt and I got the same error message. I did however successfully install tflearn.

I also installed Python 2.7 but I again got the same error message. I googled the error and tried some of the things which were suggested to other people but nothing worked (this included installing Flask).

How can I install Tensorflow? Thanks.

回答1:

Tensorflow as of Aug-13-2018 supports, Python 3.6.x . Install Python 3.6.x



回答2:

I am giving it for Windows

If you are using python-3

  1. Upgrade pip to the latest version using py -m pip install --upgrade pip
  2. Install package using py -m pip install <package-name>

If you are using python-2

  1. Upgrade pip to the latest version using py -2 -m pip install --upgrade pip
  2. Install package using py -2 -m pip install <package-name>

It worked for me



回答3:

if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:

conda install python=3.6

then:

pip install tensorflow

it worked for me in Linux.



回答4:

There are two important rules to install Tensorflow:

  • You have to install Python x64. It doesn't work on 32b and it gives the same error as yours.

  • It doesn't support the latest version of Python3 = 3.7.

For example, you can install Python3.6.2-64bit and it works like a Charm.



回答5:

Uninstalling Python and then reinstalling solved my issue and I was able to successfully install TensorFlow.



回答6:

Python version is not supported Uninstall python

https://www.python.org/downloads/release/python-362/

You should check and use the exact version in install page. https://www.tensorflow.org/install/install_windows

python 3.6.2 or python 3.5.2 solved this issue for me