【问题标题】:installing numpy Raspberry Pi安装 numpy Raspberry Pi
【发布时间】: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 也不能安装......
  • 究竟是什么分布?

标签: python numpy pip


【解决方案1】:

嗯,也许尝试运行命令sudo apt install python3-openssl,然后运行你之前尝试过的命令,看看你是否仍然遇到同样的问题

如果仍然有错误,请尝试使用sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev安装python的所有依赖项

希望这可行:)

【讨论】:

    猜你喜欢
    • 2015-10-07
    • 1970-01-01
    • 1970-01-01
    • 2016-08-07
    • 2015-05-16
    • 1970-01-01
    • 1970-01-01
    • 2018-09-25
    • 2015-01-26
    相关资源
    最近更新 更多