问题 Tensorflow 1.0 Windows + 64位Anaconda 4.3.0错误


按照“使用Anaconda安装”中的说明进行操作 https://www.tensorflow.org/install/install_windows,我到了这一步并失败了。

(tensorflow) C:\Users\rallen\Documents\Devel\python\tensorflow>pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.

这是我的环境64位Anaconda3 4.3.0

>python Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

我以前从pip成功安装了1.0之前的tensorflow。


6931
2018-02-16 06:00


起源



答案:


显然python 3.5非常重要。由于最新的Anaconda3发行版是3.6,你必须这样做:

> conda create -n tensorflow python=3.5

似乎现在可以在pip上使用1.0软件包,所以你可以这样做:

..> activate tensorflow ...> pip install tensorflow-gpu Collecting tensorflow-gpu Downloading tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl (43.1MB) 100% |################################| 43.1MB 31kB/s Collecting protobuf>=3.1.0 (from tensorflow-gpu) ...

我已成功运行python 3.5 shell中的'hello world'命令 tf.__version__ 显示为 '1.0.0'


8
2018-02-16 06:35



我收到此错误: Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow - suku


答案:


显然python 3.5非常重要。由于最新的Anaconda3发行版是3.6,你必须这样做:

> conda create -n tensorflow python=3.5

似乎现在可以在pip上使用1.0软件包,所以你可以这样做:

..> activate tensorflow ...> pip install tensorflow-gpu Collecting tensorflow-gpu Downloading tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl (43.1MB) 100% |################################| 43.1MB 31kB/s Collecting protobuf>=3.1.0 (from tensorflow-gpu) ...

我已成功运行python 3.5 shell中的'hello world'命令 tf.__version__ 显示为 '1.0.0'


8
2018-02-16 06:35



我收到此错误: Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow - suku


看起来像 tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl 会失败但是 tensorflow-1.0.0-cp35-cp35m-win_amd_64.whl 对我来说很好。


2
2018-02-16 09:08



你是说这适用于python 3.6吗? - Roger Allen


谁使用python版本3.6和anaconda。

conda create -n tensorflow python=3.5
activate tensorflow
pip install tensorflow-gpu


2
2018-02-22 17:09





你可以看到 这个问题, 也许 win_x86_64 应该改为 win_amd64


1
2018-02-17 01:36





1)C:> pip uninstall tensorflow
2)C:> pip install tensorflow


0
2018-02-16 06:35





我安装了Miniconda(Anaconda)。我使用了pycharm,其中我添加了Miniconda(Anaconda)解释器。通过搜索所需的内容,可以通过此解释器轻松添加TensorFlow TensorFlow 包


0
2018-02-17 07:19





昨天我带着命令面对同样的问题 (tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl

简单地写

C:> pip install tensorflow

C:> pip install tensorflow-gpu #for gpu version


0
2018-02-17 12:51