Could not find a version that satisfies the requir

2019-01-17 09:35发布

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.

6条回答
一夜七次
2楼-- · 2019-01-17 09:52

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

查看更多
Melony?
3楼-- · 2019-01-17 09:57

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

查看更多
唯我独甜
4楼-- · 2019-01-17 10:06

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

查看更多
做自己的国王
5楼-- · 2019-01-17 10:08

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.

查看更多
乱世女痞
6楼-- · 2019-01-17 10:12

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.

查看更多
仙女界的扛把子
7楼-- · 2019-01-17 10:15

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

查看更多
登录 后发表回答