由于Armbian默认未装一些库,在安装numpy时可能会出现诸如如下错误:
ERROR: Could not find a version that satisfies the requirement Cython<3.1,>=0.29.34
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rb01pc_a/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'patchelf >= 0.11.0' 'ninja >= 1.8.2'
ERROR: Failed building wheel for ninja
The Meson build system
../meson.build:44:2: ERROR: Problem encountered: Cannot compile `Python.h`. Perhaps you need to install python-dev|python-devel
原因是cmake和ninja及python-dev未安装,执行如下后可以再安装numpy:
apt install cmake
apt install generate-ninja
apt install python3-dev

4979

被折叠的 条评论
为什么被折叠?



