Python 找不到满足张量流要求的版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48720833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not find a version that satisfies the requirement tensorflow
提问by Martin W
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, etc), but when I tried installing Tensorflow it didn't install, and I got the error message:
我安装了最新版本的 Python(3.6.4 64-bit)
和最新版本的PyCharm (2017.3.3 64-bit)
. 然后我在 PyCharm 中安装了一些模块(Numpy、Pandas 等),但是当我尝试安装 Tensorflow 时它没有安装,我收到了错误消息:
Could not find a version that satisfies the requirement TensorFlow (from versions: ) No matching distribution found for TensorFlow.
找不到满足 TensorFlow 要求的版本(来自版本:)未找到与 TensorFlow 匹配的发行版。
Then I tried installing TensorFlow from the command prompt and I got the same error message. I did however successfully install tflearn.
然后我尝试从命令提示符安装 TensorFlow,但我收到了相同的错误消息。然而,我确实成功安装了 tflearn。
I also installed Python 2.7, but I got the same error message again. I googled the error and tried some of the things which were suggested to other people, but nothing worked (this included installing Flask).
我还安装了 Python 2.7,但我再次收到相同的错误消息。我用谷歌搜索错误并尝试了一些向其他人建议的东西,但没有任何效果(包括安装 Flask)。
How can I install Tensorflow? Thanks.
如何安装 Tensorflow?谢谢。
采纳答案by David Prun
Tensorflow as of Aug-13-2018 supports, Python 3.6.x, and only the 64 bit version.
截至 2018 年 8 月 13 日,Tensorflow 支持 Python 3.6.x,并且仅支持 64 位版本。
回答by Moradnejad
There are two important rules to install Tensorflow:
安装 Tensorflow 有两个重要规则:
You have to install Python x64. It doesn't work on 32b and it gives the same error as yours.
It doesn'tsupport the latest version of Python3 = 3.7.
您必须安装 Python x64。它在 32b 上不起作用,并且会出现与您相同的错误。
它不支持最新版本的 Python3 = 3.7。
For example, you can install Python3.6.2-64bitand it works like a Charm.
例如,您可以安装Python3.6.2-64bit,它就像一个 Charm。
Update
更新
Reportedly in the comment, it works in x64 version of Python3.8.
据报道,在评论中,它适用于 Python3.8 的 x64 版本。
回答by Anil Sah
I installed it successfully by
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
我通过以下方式成功安装了它
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
回答by Ghanem
if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:
如果您使用的是anaconda,则默认安装 python 3.7,因此您必须将其降级到 3.6:
conda install python=3.6
conda 安装 python=3.6
then:
然后:
pip install tensorflow
pip 安装张量流
it worked for me in Ubuntu.
它在 Ubuntu 中对我有用。
回答by Ankur Bhatia
I am giving it for Windows
我正在为Windows提供它
If you are using python-3
如果您使用的是 python-3
- Upgrade pip to the latest version using
py -m pip install --upgrade pip
- Install package using
py -m pip install <package-name>
- 使用 pip 升级到最新版本
py -m pip install --upgrade pip
- 使用安装包
py -m pip install <package-name>
If you are using python-2
如果您使用的是 python-2
- Upgrade pip to the latest version using
py -2 -m pip install --upgrade pip
- Install package using
py -2 -m pip install <package-name>
- 使用 pip 升级到最新版本
py -2 -m pip install --upgrade pip
- 使用安装包
py -2 -m pip install <package-name>
It worked for me
它对我有用
回答by mithunpaul
Tensorflow isn't available for python 3.8
(as of Dec 4th 2019) according to their documentation page. You will have to downgrade to python 3.7
.
python 3.8
根据他们的文档页面,Tensorflow 不可用(截至 2019 年 12 月 4 日)。您将不得不降级到python 3.7
.
回答by Martin W
Uninstalling Python and then reinstalling solved my issue and I was able to successfully install TensorFlow.
卸载 Python 然后重新安装解决了我的问题,我能够成功安装 TensorFlow。
回答by ManU
Python version is not supported Uninstall python
不支持Python版本卸载python
https://www.python.org/downloads/release/python-362/
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
您应该检查并使用安装页面中的确切版本。 https://www.tensorflow.org/install/install_windows
python 3.6.2 or python 3.5.2 solved this issue for me
python 3.6.2 或 python 3.5.2 为我解决了这个问题
回答by Rahul Sattar
Looks like the problem is with Python 3.8. Use Python 3.7 instead. Steps I took to solve this.
看起来问题出在 Python 3.8 上。请改用 Python 3.7。我采取的步骤来解决这个问题。
- Created a python 3.7 environment with conda
- List item Installed rasa using pip install rasa within the environment.
- 使用 conda 创建了一个 python 3.7 环境
- 列表项在环境中使用 pip install rasa 安装了 rasa。
Worked for me.
为我工作。
回答by Jop Knoppers
I am using python 3.6.8, on ubunu 18.04, for me the solution was to just upgrade pip
我在 ubunu 18.04 上使用 python 3.6.8,对我来说解决方案是升级 pip
pip install --upgrade pip
pip install tensorflow==2.1.0