Python Tensorflow r1.0:找不到满足张量流要求的版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42317075/
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
Tensorflow r1.0 : could not a find a version that satisfies the requirement tensorflow
提问by ceounii lee
I want to install Tensorflow 1.o for python on windows.
我想在 Windows 上为 python 安装 Tensorflow 1.o。
This is information for my system.
这是我的系统的信息。
D:\>python --version
Python 3.5.2 :: Anaconda 4.2.0 (32-bit)
D:\>pip3 --version
pip 9.0.1 from d:\web\anaconda\lib\site-packages (python 3.5)'
But, when I execute below command,
但是,当我执行以下命令时,
D:\>pip3 install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I don't understand what the problem is...
我不明白这是什么问题...
And I tried another way...
我尝试了另一种方式......
This is case when I use Conda
这是我使用 Conda 时的情况
(tensorflow) D:\>pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl
tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.
What is the problem?
问题是什么?
回答by Moynul Haque Biswas
I was in same problem.
我遇到了同样的问题。
Below command solved my problem
下面的命令解决了我的问题
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
to find the list of all the urls based on the python version and CPU or GPU only refer to: https://www.tensorflow.org/install/pip
查找基于 python 版本和 CPU 或 GPU 的所有 url 的列表仅参考:https: //www.tensorflow.org/install/pip
回答by Franck Dernoncourt
On Microsoft Windows, TensorFlow needs Python 3.564-bit. You seem to use Python 32-bit.
在 Microsoft Windows 上,TensorFlow 需要 Python 3.564 位。您似乎使用 Python 32 位。
回答by devil in the detail
Tensorflow on windows needs python 3.5. You can follow following steps to activate python 3.5 in anaconda:
Windows 上的 Tensorflow 需要 python 3.5。您可以按照以下步骤在 anaconda 中激活 python 3.5:
- See which version of python you have:
conda search python
- If you already have python 3.5 then go to step 3
otherwise use
conda create -n py35 python=3.5 anaconda
to create python 3.5 - Activate python 3.5 using
activate py35
- Now install tensorflow using
conda install tensorflow
- 查看您拥有哪个版本的python:
conda search python
- 如果您已经有 python 3.5,则转到第 3 步,否则使用
conda create -n py35 python=3.5 anaconda
创建 python 3.5 - 使用激活 python 3.5
activate py35
- 现在使用安装tensorflow
conda install tensorflow
If step4 is not working i.e, something like "tensorflow: no package found " then follow thistutorial to forge conda-forge
channel and then try installing tensorflow using step4. It worked for me.
如果第 4 步不起作用,即“tensorflow:未找到包”之类的内容,请按照本教程创建conda-forge
频道,然后尝试使用第 4 步安装 tensorflow。它对我有用。
回答by SrGrace
Try this
尝试这个
Installing with Anaconda
使用 Anaconda 安装
conda create --name tensorflow python=3.5
activate tensorflow
conda install jupyter
conda install scipy
pip install tensorflow
or
pip install tensorflow-gpu
It is important to add python=3.5 at the end of the first line, because it will install Python 3.5.
在第一行的末尾添加 python=3.5 很重要,因为它会安装 Python 3.5。
回答by Geek
I was getting the same error
我遇到了同样的错误
- Get Python 3.5
- Upgrade pip version to 9
- Install tensorflow
- 获取 Python 3.5
- 将 pip 版本升级到 9
- 安装张量流
It worked for me
它对我有用
回答by deenaik
From your python version output, looks like that you are using Anaconda python, in that case, there is a simple way to install tensorflow.
从您的 python 版本输出来看,您似乎正在使用 Anaconda python,在这种情况下,有一种安装 tensorflow 的简单方法。
conda install -c conda-forge tensorflow
This command will take care of all dependencies like upgrade/downgrade etc.
此命令将处理所有依赖项,如升级/降级等。
回答by tonycor nikolauos
I did it with:
我是这样做的:
python3 -m pip install --upgrade tensorflow
回答by Pranoy Sarkar
upgrading pip
worked for me
升级pip
对我有用
python -m pip install --upgrade pip