pip install numpy 安装numpy失败

在Linux环境中,尝试使用pip安装numpy时遇到问题。按照numpy官网的Installation Guide建议,推荐使用--user标志进行用户安装,以避免写入系统目录。然而,这仍然遇到了错误。尽管pip可以访问Python Package Index并安装特定版本以防冲突,但这次安装尝试并未成功,导致作者最终决定切换回Ubuntu系统。
摘要由CSDN通过智能技术生成


硬件平台 bananapi zero ,系统 armbian

运行 pip install numpy

ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

在numpy官网查看 Installation Guide

Installing via pip¶
Python comes with an inbuilt package management system, pip. Pip can install, update, or delete any official package.
You can install packages via the command line by entering:
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
We recommend using an user install, sending the --user flag to pip. pip installs packages for the local user and does not write to the system directories. Preferably, do not use sudo pip, as this combination can cause problems.
Pip accesses the Python Package Index, PyPI , which stores almost 200,000 projects and all previous releases of said projects. Because the repository keeps previous versions, you can pin to a version and not worry about updates causing conflicts. Pip can also install packages in local virtualenv, or virtual environment.

再次报错

    RuntimeError: Running cythonize failed!

尝试 pip install Cython

-[  514.005555] 8<--- cut here ---
[  514.008894] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  514.017123] pgd = d776906a
[  514.019851] [00000000] *pgd=00000000
[  514.023514] Internal error: Oops: 5 [#1] SMP THUMB2
[  514.028410] Modules linked in: snd_soc_hdmi_codec evdev zram h
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值