PIP3 numpy 安装失败
硬件平台 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