【发布时间】:2019-03-11 09:25:25
【问题描述】:
我在 Raspberry Pi 上安装 numpy 时遇到了这个问题(没有 anaconda 的 Python 3.6.6):
pi@raspberrypi:~/Desktop$ sudo pip3 install numpy
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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
出了什么问题,我该如何解决?
【问题讨论】:
-
也许您需要先安装 OpenSSL?
sudo apt-get install openssl -
pi@raspberrypi:~/Desktop$ sudo apt-get install openssl 读取包列表...完成 构建依赖树 读取状态信息...完成 将升级以下包:openssl 1 升级, 0 新安装,0 删除,373 未升级。需要获得 0 B/712 kB 的档案。此操作后,将使用 72.7 kB 的额外磁盘空间。
-
*** `/usr/bin/python3' 中的错误:free(): invalid pointer: 0x003e2bd0 *** Aborted E: Sub-process /usr/bin/apt-listchanges --apt ||测试$? -lt 10 返回错误代码 (1) E: 运行脚本失败 /usr/bin/apt-listchanges --apt ||测试$? -lt 10
-
嗯,你安装了什么发行版?用这么少的信息很难诊断任何东西,我们现在才知道,numpy 不能通过 SSL 安装,openSSL 也不能安装......
-
究竟是什么分布?