pip install numpy 安装numpy失败

PIP3 numpy 安装失败

  • 运行 pip install numpy
  • 在numpy官网查看 Installation Guide
  • 再次报错

硬件平台 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 hci_uart brcmfmac btrtl btbcm brcmutil bluetooth sun4i_gpadc_iio cfg80211 ecdh_generic industrialio ecc dw_hdmi_i2s_audio dw_hdmi_cec lima sun8i_thermal gpu_sched rfkill sun8i_ce crypto_engine sunxi_cedrus(C) sun8i_di gpio_keys display_connector uio_pdrv_genirq cpufreq_dt uio sch_fq_codel usb_f_acm u_serial g_serial libcomposite ip_tables x_tables autofs4 pwrseq_simple sunxi phy_generic
[  514.068042] CPU: 1 PID: 106 Comm: kswapd0 Tainted: G         C        5.8.16-sunxi #20.08.14
[  514.076497] Hardware name: Allwinner sun8i Family
[  514.081220] PC is at obj_malloc+0x28/0xf0
[  514.085236] LR is at zs_malloc+0x149/0x364
[  514.089335] pc : []    lr : []    psr: 20030033
[  514.095603] sp : d6811b08  ip : d710de30  fp : d710de29
[  514.100828] r10: 00088000  r9 : 12980000  r8 : d5979380
[  514.106053] r7 : d02baf40  r6 : 00012980  r5 : 00000000  r4 : 00000000
[  514.112580] r3 : 00000004  r2 : 00000000  r1 : d02baf40  r0 : d5979380
[  514.119111] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
[  514.126426] Control: 50c5387d  Table: 5575006a  DAC: 00000051
[  514.132180] Process kswapd0 (pid: 106, stack limit = 0x185484aa)
[  514.138190] Stack: (0xd6811b08 to 0xd6812000)
[  514.142556] 1b00:                   00000001 d5979380 d710de28 d6b3a000 0000280a 00002800
[  514.150740] 1b20: d710de28 d02baf40 bf8bb440 c0262c4d d69f4000 00000001 0282c0a1 d6811b80
[  514.158925] 1b40: 00002000 c04efee1 d69f4000 c0f04fc8 00000223 d4a8b200 00000000 d6810000
[  514.167109] 1b60: d7be6d1c 00000000 ff7c7b94 c100247c bf8bb440 bf8b8cd3 00000592 00000001
[  514.175294] 1b80: 00000223 c0f04fc8 0000d0f9 00002c90 00000000 d4a8b200 c9a35f80 00000001
[  514.183478] 1ba0: d7be6d1c 00000000 0000d0f9 bf8b922d 00000000 c029f57b d7be6d1c 00001000
[  514.191663] 1bc0: 00000000 c0f04fc8 00000000 00000000 c9a35f80 00002c90 00000000 d7be6d1c
[  514.199847] 1be0: bf8ba064 00000001 d6811d80 c029f5a9 d7be6d1c 00000001 00000592 d7be6d1c
[  514.208031] 1c00: c9a35f80 d6811cf0 c024745d 00000592 00000000 c02477c7 d7be6d1c d6811cf0
[  514.216216] 1c20: d6811c6c c024d489 d6811d80 c057eaef 00001000 00000000 00000592 c0f04fc8
[  514.224401] 1c40: d7be6d1c d7be6d1c c0f28fe4 d7be6d1c 00000000 c0f055f4 d4ecf540 00000592
[  514.232586] 1c60: d6811d80 c024d489 d7be6d1c d6811cf0 d6811cf0 c0f04fc8 00000592 d7be6d1c
[  514.240770] 1c80: 00000000 d6811cf0 d01f4a80 00000592 00000000 c021c6d5 c021c43d d7be6d20
[  514.248954] 1ca0: d7be6d1c a2084000 d6811f08 d01f4a80 d6811d88 c02172b7 00000001 00000000
[  514.257138] 1cc0: ffffe000 00000000 00000001 00000000 c0fd71c0 c0e961cc 00000380 00000001
[  514.265321] 1ce0: d6811ce0 d6811ce0 d7be6cfc d7be6cfc 00000020 00000000 00000000 00000000
[  514.273504] 1d00: ffffffff 7fffffff 00000000 00000008 00000000 00000000 00000000 00000000
[  514.281689] 1d20: 00000000 00000000 00000000 00000000 00000000 c0f04fc8 d6811d34 d6811f08
[  514.289874] 1d40: c0e96180 d7006e00 c0fd71c0 00000020 00000000 00000007 c0fd7cc0 c0218217
[  514.298058] 1d60: d6811d88 00000000 d6811f08 00000003 fffffffe 00000068 00000020 00000020
[  514.306242] 1d80: d7be729c d7be6d44 00000000 00000000 00000000 00000000 00000000 00000001
[  514.314437] 1da0: 00000000 00000000 00000000 00000000 00000000 c0f04fc8 d735f2c0 d6811f08
[  514.322623] 1dc0: d7006e00 0000081a 00000000 00000143 51eb851f 00000000 d6811e18 c0218983
[  514.330806] 1de0: 00000001 ffffffff 000001c0 00000000 00000000 0000081a 000001bf 00000000
[  514.338991] 1e00: d6811e00 d6811e00 d6811e08 d6811e08 00000000 0000013f 000003b2 000000cb
[  514.347175] 1e20: 00000167 00000020 0000023f 00000492 000001ab 00000247 00000020 c0f04fc8
[  514.355361] 1e40: 00000000 d6811f08 d7025800 00000000 c0f05604 00000000 00000000 000002b4
[  514.363547] 1e60: c0fd71c0 c0218c7d 00000020 c0fd71c0 d7006e00 00000000 000002b4 00000000
[  514.371731] 1e80: c0f04ac0 c0f15808 c0fd7cc0 d6811f30 d6811f4c c0f04a80 c0f04fc8 00000001
[  514.379916] 1ea0: c0fd71c0 00000000 00000000 00000001 000002b4 00000002 c0f05604 c021967d
[  514.388100] 1ec0: 00000001 d6810000 c1028c40 00000001 c0fd7cc4 00000002 c1035d74 c102cca4
[  514.396285] 1ee0: 00000000 d6811ec0 c0151889 ffffe000 c0f04fec c0e96208 c0e96204 d735f2c0
[  514.404469] 1f00: d735f2c0 00000000 0000081a 00000000 00000000 00001194 00000000 04000073
[  514.412652] 1f20: 00000002 00000cc0 000001c2 000002b4 00000000 00000000 00000000 00000000
[  514.420836] 1f40: 00000000 000000e0 000001c0 00000000 00000000 00000000 00000000 c0f04fc8
[  514.429024] 1f60: c0fd71c0 d72cd600 d5732680 00000000 d6810000 c021931d c0fd71c0 d70dfe74
[  514.437208] 1f80: d72cd624 c0135b07 00000007 d5732680 c0135a1d 00000000 00000000 00000000
[  514.445392] 1fa0: 00000000 00000000 00000000 c0100159 00000000 00000000 00000000 00000000
[  514.453576] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  514.461762] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  514.469963] [] (obj_malloc) from [] (zs_malloc+0x149/0x364)
[  514.477305] [] (zs_malloc) from [] (zram_bvec_rw.constprop.0+0x35b/0x52c [zram])
[  514.486481] [] (zram_bvec_rw.constprop.0 [zram]) from [] (zram_rw_page+0xa1/0x120 [zram])
[  514.496423] [] (zram_rw_page [zram]) from [] (bdev_write_page+0x71/0x9c)
[  514.504926] [] (bdev_write_page) from [] (__swap_writepage+0x47/0x280)
[  514.513237] [] (__swap_writepage) from [] (shmem_writepage+0x299/0x388)
[  514.521610] [] (shmem_writepage) from [] (shrink_page_list+0x6e3/0xa74)
[  514.529975] [] (shrink_page_list) from [] (shrink_inactive_list+0x15b/0x300)
[  514.538771] [] (shrink_inactive_list) from [] (shrink_lruvec+0x27b/0x444)
[  514.547307] [] (shrink_lruvec) from [] (shrink_node+0x131/0x4f0)
[  514.555061] [] (shrink_node) from [] (kswapd+0x361/0x67c)
[  514.562212] [] (kswapd) from [] (kthread+0xeb/0x10c)
[  514.568929] [] (kthread) from [] (ret_from_fork+0x11/0x38)
[  514.576155] Exception stack(0xd6811fb0 to 0xd6811ff8)
[  514.581214] 1fa0:                                     00000000 00000000 00000000 00000000
[  514.589398] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  514.597580] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  514.604205] Code: 3629 2e00 dd08 2300 (6825) 3301
[  514.609120] ---[ end trace d3569d942108df6a ]---

头疼,换回ubuntu了

你可能感兴趣的:(linux学习,linux)