Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Anaconda错误导致在windows上安装Tensorflow 1.0_Python_Tensorflow_Anaconda - Fatal编程技术网

Python Anaconda错误导致在windows上安装Tensorflow 1.0

Python Anaconda错误导致在windows上安装Tensorflow 1.0,python,tensorflow,anaconda,Python,Tensorflow,Anaconda,按照上的说明,我试图通过Anaconda安装仅cpu版本的Tensorflow。然而,第四步 (tensorflow)C:> 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_

按照上的说明,我试图通过Anaconda安装仅cpu版本的Tensorflow。然而,第四步

(tensorflow)C:> 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. Could anyone tell me the reason behind this?

我认为你的问题可能是这样的:

  • 您的python版本不是Python3.5
  • 您的系统不是x64 windows
  • 因此,您可以更改下面的安装方法

    您可以使用
    pip
    直接安装
    tensorflow
    ,如下所示:

    pip install tensorflow
    
    但这只适用于pip版本>9, 如果您使用的是低于9的pip版本,则必须首先升级pip

    您可以通过以下方式升级pip:

    pip install -U pip
    
    如果您为所有用户安装了python,则可以使用管理员帐户运行此代码


    网站上的命令当前错误。将URL末尾的
    x86_64
    替换为
    amd64
    ,以获得正确的命令:

    pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
    
    或者,您可以使用以下更简单的命令安装最新的CPU版本:

    pip install --ignore-installed --upgrade tensorflow
    

    python--version和pip-V的输出是什么?python 3.5和pip 9,我已经解决了这个问题,请参考@Beomithanks的答案,我已经解决了这个问题,在Anaconda中,只需“pip install tensorflow”,就行了。我的python是3.5,pip是>9。我只是想知道原因。无论如何,谢谢。不过,我已经在Anaconda中通过
    pip install tensorflow
    解决了这个问题。您的第二个命令似乎不起作用。您遇到了什么错误
    pip install tensorflow
    通常是最简单的方法,但URL版本也应该可以工作。URL版本工作正常,我的意思是第二个命令输出与“…不受支持的控制盘…”相同的错误。无论如何,问题解决了,谢谢!