【发布时间】:2019-02-28 18:19:22
【问题描述】:
我检查了他们, 蟒蛇--版本 Python 3.7.1
pip --version 点 18.1
我使用的是 Windows 10。
但是,pip install tenserflow运行命令行,出现如下错误。
pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。
Could not fetch URL https://pypi.org/simple/pip/:
There was a problem confirming the ssl certificate:
HTTPSConnectionPool(host='pypi.org', port=443):
Max retries exceeded with url: /simple/pip/
(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
为什么?
【问题讨论】:
-
你可以尝试升级 pip "python -m pip install --trusted-host pypi.python.org pip --upgrade"
-
有时可能是因为您的网络(公共 wifi 或公司 VPN)阻止连接到 url。
标签: python tensorflow pip