我正在尝试使用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没有任何问题。
当前回答
如果你试图在anaconda中安装tensorflow,但它不起作用,那么你可能需要降级python版本,因为只有3.6。目前支持X,而anaconda有最新版本。
检查python版本:python——version 如果>版本为3.6. exe。X则按照步骤3,否则停止,问题可能在其他地方 Conda搜索python Conda install python=3.6.6 再次检查版本:python——version 如果版本正确,安装tensorflow(步骤7) PIP安装tensorflow
其他回答
通过勾选“添加python到路径”来安装python Pip3安装——升级https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
这适用于windows 10.0
从今天开始,如果还有人想知道, Python >= 3.9也会导致同样的问题 卸载python 3.9,然后安装3.8,应该会解决这个问题
我在conda上安装了tensorflow,但似乎在windows上不起作用,但最终这个命令在cmd上可以正常工作。
python.exe -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
我也有这个问题。当查看不同的.whl文件时。我注意到在python 3.7中没有32位版本的tensorflow。最后只能从这里安装64位Python 3.7。
试试这个,它应该工作:
python.exe -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl