【发布时间】:2017-03-21 08:33:01
【问题描述】:
我在尝试 pip install NumPy 时收到此错误:
pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。
Collecting numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate:
Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
有人知道怎么解决吗?
【问题讨论】:
-
请提供
pip version命令:pip -V -
尝试使用 apt-get 安装 libssl-dev ...
-
@vanloc pip 9.0.1 来自 /home/nguyennguyenquochuy/tutorial-env/lib/python3.6/site-packages (python 3.6)
-
@GerardRozsavolgyi 它不起作用。
标签: python python-3.x numpy ssl pip