我正在尝试使用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没有任何问题。
当前回答
安装Python 3.5。x64位amd版本。确保将Python添加到PATH变量中。然后打开命令提示符并键入
python -m pip install --upgrade pip
应该会给你以下结果:
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-9.0.1
现在式
pip3 install --upgrade tensorflow
其他回答
如果你试图在windows机器上安装它,你需要有64位版本的python 3.5。这是真正安装它的唯一方法。来自网站:
TensorFlow仅支持Windows上的64位Python 3.5。我们已经用以下Python发行版测试了pip包: Anaconda的Python 3.5 Python 3.5来自python.org。
你可以从这里下载合适的python版本(确保你选择了一个写着“Windows x86-64”的版本)
现在,您应该能够使用pip install tensorflow或python -m pip install tensorflow进行安装(如果同时安装了python2和python3,请确保您使用的是从python3安装的正确pip)
请记住安装Anaconda 3-5.2.0作为最新版本,即3-5.3.0,包含Tensorflow不支持的python 3.7版本。
从今天开始,如果还有人想知道, Python >= 3.9也会导致同样的问题 卸载python 3.9,然后安装3.8,应该会解决这个问题
我也遇到了同样的问题,问题是我使用的AWS机器有ARM处理器!
我必须手动构建张量流
Python 3.7适合我,我卸载了Python 3.8.1,重新安装了3.7.6。之后,我执行:
pip3 install --user --upgrade tensorflow
这是可行的
对于窗户,这个方法对我很有效,
从这个链接下载车轮。然后从命令行导航到车轮所在的下载文件夹,只需键入以下命令-
PIP安装tensorflow-1.0.0-cp36-cp36m-win_amd64.whl