[英]Mac using:Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
python version:蟒蛇版本:
$ python3 -V
Python 3.7.0
pip3 path: 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 version: pip3 版本:
pip3 -V
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
the tensorflow could be installed by pip without any problem but couldn't be installed by pip3 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
the similar problem happens when I try to install any other packages.当我尝试安装任何其他软件包时会发生类似的问题。
I fixed this by uninstalling python@2 and reinstall python@3.8我通过卸载 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.