安装 Tensorflow - 不支持的轮子 [英] Installing Tensorflow - not supported wheel
问题描述
我已经安装了 Python 3.5 和 3.6 版以及 anaconda.
I have installed Python version 3.5 and 3.6 and anaconda.
尝试按照此处的步骤安装 tensorflow 时出现以下错误https://www.tensorflow.org/install/install_windows不唱歌的蟒蛇
The following error occures when trying to install tensorflow following the steps here https://www.tensorflow.org/install/install_windows unsing anaconda
(tensorflow) C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
(tensorflow) C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
tensorflow-1.0.1-cp35-cp35m-win_amd64.whl 在此平台上不受支持.
tensorflow-1.0.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
由于我是 Python 新手,我不知道如何绕过这个问题.我使用的是 64 位的 Win10.
As I am new to Python, I do not know how to circumvent this probelm. I am using Win10 with 64bit.
非常感谢,最好,
马丁
推荐答案
我遇到了同样的问题和同样的错误.似乎没有立即支持 Python 3.6 并找到了一种解决方法 here(请注意,这涉及安装我尚未安装的 Python 3.5,如果已经安装,我不知道是否应该以不同的方式完成):
I ran into the same difficulties with the same error. It seems to be that Python 3.6 isn't immediately supported and found a sort of workaround here (note that this involves installing Python 3.5 which I did not already have installed, I don't know if this should be done a different way if its already installed):
如果您使用的是 anaconda 发行版,您可以执行以下操作以在新环境tensorflow"上使用 python 3.5:
If you are using anaconda distribution, you can do the following to use python 3.5 on the new environment "tensorflow":
conda create --name tensorflow python=3.5
activate tensorflow
conda install jupyter
conda install scipy
pip install tensorflow
\# or
\# pip install tensorflow-gpu
在第一行末尾添加 python=3.5
很重要,因为它会安装 Python 3.5.
It is important to add python=3.5
at the end of the first line, because it will install Python 3.5.
如果您已经创建了 tensorflow 环境(conda create
步骤),则必须将其删除并重新开始.否则,您将遇到错误CondaValueError: Value error: prefix already exists: C:\[your environment location]
"(如果您遇到不受支持的轮子错误,那么您可能已经创建了环境.)
If you've already created the tensorflow environment (the conda create
step), you'll have to delete it and start over. Otherwise, you'll run into an error "CondaValueError: Value error: prefix already exists: C:\[your environment location]
" (If you run into the unsupported wheel error, then you probably created the environment already.)
根据Conda Cheat Sheet删除你之前的环境,如果需要,首先通过调用 deactivate
从 (tensor flow)
停用,然后调用 conda remove --prefix ~/bioenvcopy --all代码>.对于
~/bioenvcopy
我相信你使用 tensorflow 环境路径.可以通过调用 conda info --envs
(再次引用备忘单)找到该位置.例如,我的是 conda remove --prefix ~/Anaconda3/envs/tensorflow
To delete your previous environment, according to the Conda Cheat Sheet, you first deactivate from (tensor flow)
if needed by calling deactivate
, then call conda remove --prefix ~/bioenvcopy --all
. For ~/bioenvcopy
I believe you use the tensorflow environment path. The location can be found by calling conda info --envs
(citing the cheat sheet once again). Mine, for example, was conda remove --prefix ~/Anaconda3/envs/tensorflow
我成功地在 Windows 10 上使用了这项工作.
I successfully used this work around on Windows 10.
当支持 3.6 时,此解决方案可能已过时.
This solution probably be obsolete when 3.6 is supported.
这篇关于安装 Tensorflow - 不支持的轮子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!