【问题标题】:Mac using:Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflowMac using:Could not find a version that meet the requirements tensorflow (from versions:) No matching distribution found for tensorflow
【发布时间】:2018-09-03 05:35:25
【问题描述】:

python 版本:

$ 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)

张量流可以通过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 macos pip


【解决方案1】:

我通过卸载 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-07
    • 2022-12-19
    • 2021-08-26
    • 1970-01-01
    • 2020-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多