简体   繁体   English

安装 Tensorflow - 不支持的轮子

[英]Installing Tensorflow - not supported wheel

I have installed Python version 3.5 and 3.6 and anaconda.我已经安装了 Python 3.5 和 3.6 版以及 anaconda。

The following error occures when trying to install tensorflow following the steps here https://www.tensorflow.org/install/install_windows unsing anaconda尝试按照此处的步骤安装 tensorflow 时出现以下错误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 is not a supported wheel on this platform. tensorflow-1.0.1-cp35-cp35m-win_amd64.whl 在此平台上不受支持。

As I am new to Python, I do not know how to circumvent this probelm.由于我是 Python 新手,我不知道如何规避这个问题。 I am using Win10 with 64bit.我正在使用 64 位的 Win10。

Thanks a lot and best,非常感谢,最好,

Martin马丁

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):似乎没有立即支持 Python 3.6 并在这里找到了一种解决方法(请注意,这涉及安装我尚未安装的 Python 3.5,我不知道这是否应该以不同的方式完成,如果它已安装):

If you are using anaconda distribution, you can do the following to use python 3.5 on the new environment "tensorflow":如果您使用的是 anaconda 发行版,则可以执行以下操作以在新环境“tensorflow”上使用 python 3.5:

 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。

If you've already created the tensorflow environment (the conda create step), you'll have to delete it and start over.如果您已经创建了 tensorflow 环境(conda conda create步骤),则必须将其删除并重新开始。 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.)否则,您将遇到错误“ CondaValueError: Value error: prefix already exists: C:\\[your environment location] ”(如果遇到不支持的轮错误,那么您可能已经创建了环境。)

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 .要删除您以前的环境,根据Conda Cheat Sheet ,如果需要,您首先通过调用deactivate(tensor flow) deactivate ,然后调用conda remove --prefix ~/bioenvcopy --all For ~/bioenvcopy I believe you use the tensorflow environment path.对于~/bioenvcopy我相信您使用 tensorflow 环境路径。 The location can be found by calling conda info --envs (citing the cheat sheet once again).可以通过调用conda info --envs找到该位置(再次引用备忘单)。 Mine, for example, was conda remove --prefix ~/Anaconda3/envs/tensorflow例如,我的是conda remove --prefix ~/Anaconda3/envs/tensorflow

I successfully used this work around on Windows 10.我成功地在 Windows 10 上使用了这项工作。

This solution probably be obsolete when 3.6 is supported.当支持 3.6 时,此解决方案可能已过时。

Creating the tensorflow env without the correct python version did not work for me.在没有正确 python 版本的情况下创建 tensorflow env 对我不起作用。 So I had to do the following, which worked...所以我不得不做以下工作,这很有效......

>deactivate tensorflow # start by deactivating the existing tensorflow env
>conda env remove -n tensorflow # remove the env

>conda create -n tensorflow python=3.5
>activate tensorflow

Try uninstalling everything (python, etc.) and try again using the cmd only, not git bash or PowerShell.尝试卸载所有内容(python 等),然后仅使用 cmd 重试,而不是使用 git bash 或 PowerShell。

https://github.com/tensorflow/tensorflow/issues/9264 https://github.com/tensorflow/tensorflow/issues/9264

i had the same problem in windows 10 and python 3.6 so i navigated to anaconda navigator ( just search anaconda navigator in start search).我在 Windows 10 和 python 3.6 中遇到了同样的问题,所以我导航到 anaconda navigator(只需在开始搜索中搜索 anaconda navigator)。

in the Environment tab you can create/delete your environments.在环境选项卡中,您可以创建/删除您的环境。 just create an environment, name it tensorflow and choose python 3.5 as python version.只需创建一个环境,将其命名为 tensorflow 并选择 python 3.5 作为 python 版本。

then you can activate tensorflow in your command line:然后您可以在命令行中激活 tensorflow:

activate tensorflow

and install tensorflow with :并使用以下命令安装 tensorflow:

pip install tensorflow #or tensowrlow-gpu

I had the same problem after hours of searching, I found that to save yourself from installing error problem in tensorflow.经过数小时的搜索,我遇到了同样的问题,我发现这是为了避免在 tensorflow 中安装错误问题。 The convenient way for installing tensorflow is by creating a virtual environment in Conda with python 3.5.2 and using Conda-forge .安装 tensorflow 的便捷方法是使用python 3.5.2在 Conda 中创建一个虚拟环境并使用Conda-forge forge 。 This is done by running this commands:这是通过运行以下命令来完成的:

  1. conda create -n tensorflow python=3.5.2
  2. activate tensorflow
  3. conda config --add channels conda-forge
  4. conda install tensorflow

Try installing the 64-bit version of Python 3.6.8:尝试安装 64 位版本的 Python 3.6.8:

https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe

I was getting the same error with the same OS and that's what fixed it.我在相同的操作系统上遇到了同样的错误,这就是修复它的原因。 Apparently Tensorflow doesn't work on 32-bit Python even if your OS is 64-bit.显然,即使您的操作系统是 64 位,Tensorflow 也不适用于 32 位 Python。

In Anaconda prompt, follow the instruction on Installing with Anaconda ,在 Anaconda 提示符下,按照使用 Anaconda 安装的说明进行操作,

  1. conda create -n tensorflow
  2. activate tensorflow

Then the third step is a little different, try:那么第三步就有点不一样了,试试:

  1. pip install tensorflow

This should work, good luck!这应该有效,祝你好运! If anything wrong happens, please let me know.如果发生任何错误,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tensorflow 安装错误:__ is not a supported wheel on this platform - Tensorflow installing error: __ is not a supported wheel on this platform Tensorflow“不支持车轮”,Tensorflow出现问题 - Tensorflow “wheel not supported”, Having Issues with Tensorflow 从轮子格式安装numpy:“......这个平台上不支持轮子” - Installing numpy from wheel format: “…is not a supported wheel on this platform” 安装python wheel文件,“ *。whl”将导致“…在此平台上不受支持” - Installing a python wheel file, '*.whl“ results in ” … is not a supported wheel on this platform" tensorflow-1.0.1-py2-none-any.whl 不是该平台支持的轮子 - tensorflow-1.0.1-py2-none-any.whl is not a supported wheel on this platform Tensorflow 安装错误:此平台上不支持轮子 - Python 3.6.7 - pip 20.0.2 - Tensorflow installation error: not a supported wheel on this platform - Python 3.6.7 - pip 20.0.2 Tensorflow py3.5从源代码安装:“不支持轮子”吗? - Tensorflow py3.5 install from source: “not a supported wheel”? 在Win7x64上安装TensorFlow(没有匹配的发行版/不支持的轮子) - TensorFlow installation on Win7x64 (no matching distribution / not a supported wheel) 此平台不支持 mysql wheel - mysql wheel is not supported wheel on this platform 在此平台上不受支持的车轮 - whl is not a supported wheel on this platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM