在iPad Pro 4上使用a-shell。无法pip install scipy。我不确定是什么问题。
我尝试安装/升级 meson-python 和 pyproject.toml,但似乎该包已经是最新的。 A-shell 预装了 pandas 和 numpy。我尝试升级 numpy,但收到了相同的错误消息。
最后,我尝试安装旧版本的 scipy,但由于类似的原因,它一直失败。
[~]$ pip install scipy
Defaulting to user installation because normal site-packages is not writeable
Collecting scipy
Using cached scipy-1.14.0.tar.gz (58.6 MB)
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
meson-python: error: Could not find meson version 0.63.3 or newer, found .
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
错误信息的重要部分是这个
meson-python: error: Could not find meson version 0.63.3 or newer, found .
这基本上意味着它没有找到构建 scipy 所需的介子。
pip install meson
可以解决这个问题