繁体   English   中英

Mac using:Could not find a version that satisfied the tensorflow (from versions:) No matching distribution found for tensorflow

[英]Mac using:Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

蟒蛇版本:

$ python3 -V
Python 3.7.0

pip3 路径:

which -a pip3
/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
/usr/local/bin/pip3

pip3 版本:

pip3 -V
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

tensorflow 可以通过 pip 安装,没有任何问题,但无法通过 pip3 安装

$ pip3 install tensorflow
Collecting tensorflow
  Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

当我尝试安装任何其他软件包时会发生类似的问题。

我通过卸载 python@2 并重新安装 python@3.8 解决了这个问题

$ brew doctor
# it shows a lot warnings about python@2 and python@3.8

$ brew uninstall python@2

$ brew reinstall python@3.8

$ python3 --version
Python 3.8.6

$ pip3 install tensorflow

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM