我正在尝试使用pip安装TensorFlow:
$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
我做错了什么?到目前为止,我使用Python和pip没有任何问题。
我正在尝试使用pip安装TensorFlow:
$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
我做错了什么?到目前为止,我使用Python和pip没有任何问题。
当前回答
目前PIP没有32位版本的tensorflow,当我卸载python 32位并安装x64时,它可以工作
其他回答
在Windows 10上,这里的任何东西都不适合我。也许下面的一个更新的解决方案确实对我有用。
Python -m PIP install——升级tensorflow。
这是在Windows 10上使用Python 3.6和tensorflow 1.5
我发现这个方法终于管用了。
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
编辑1:这是在Windows (8,8.1, 10), Mac和Linux上测试的。根据您的配置将python3更改为python。如果使用Python 2.x,则将url中的py3更改为py2。
编辑2:不同版本的列表,如果有人需要:https://storage.googleapis.com/tensorflow
编辑3:可用轮子包的url列表可在这里: https://www.tensorflow.org/install/pip#package-location
正确的安装方法如下所述
$ pip install --upgrade TF_BINARY_URL # Python 2.7
$ pip3 install --upgrade TF_BINARY_URL # Python 3.N
从张量流官方主页找到正确的TF_BINARY_URL
在Windows中安装TensorFlow的URL,下面是URL。这对我来说很有效。
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
似乎有很多原因导致tensorFlow不能通过pip安装。我在windows 10上遇到的一个问题是,我的系统路径中没有支持的cudnn版本。截至目前(2017年12月),windows上的tensorflow只支持cudnn v6.1。因此,提供cudnn 6.1的路径,如果其他一切都正确,那么应该安装tensorflow。