gpt4 book ai didi

python - 无法从源代码构建 SciPy,因为缺少 pybind11

转载 作者:行者123 更新时间:2023-12-05 03:45:04 27 4
gpt4 key购买 nike

我已经在我的 Macbook 上通过 ssh 连接到我的 Raspberry Pi 3b+。我正在尝试在 Python 3.8 上安装 SciPy,但是 apt-get 不起作用并且通过 pip 安装会卡住我的 Raspberry Pi。我什至尝试增加交换大小,但它仍然卡住。因此,我试图从源代码构建 SciPy 1.6,但是当我运行 sudo python3 setup.py buildsudo python3 setup.py install 时,它返回 错误:在运行构建之前必须安装“pybind11”。

我已经使用 python3 -m pip install pybindpython3 -m pip install "pybind11[global]" 安装了 pybind11。我什至可以在 python shell 中导入 pybind11。这是我的包裹 list :

Package         Version
--------------- -------
cycler 0.10.0
Cython 0.29.21
future 0.18.2
kiwisolver 1.3.1
matplotlib 3.3.4
numpy 1.20.1
Pillow 8.1.0
pip 21.0.1
pybind11 2.6.2
pybind11-global 2.6.2
pyparsing 2.4.7
pyserial 3.5
python-dateutil 2.8.1
scikit-rf 0.16.0
setuptools 53.0.0
six 1.15.0
smbus2 0.4.1

最佳答案

使用“pip 安装 pybind11”

关于python - 无法从源代码构建 SciPy,因为缺少 pybind11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66147661/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com