在树莓派4B安装 scipy 笔记,不需要删除numpy,不需要mkl
参考官网:
不要用sudo, 带上–user,否则有问题,官网
最好用pip安装
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --user numpy scipy matplotlib ipython jupyter pandas sympy nose
scipy 下载失败,改手动下载scipy-1.4.1-cp37-cp37m-linux_armv7l.whl,完成后继续:
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --user numpy scipy-1.4.1-cp37-cp37m-linux_armv7l.whl matplotlib ipython jupyter pandas sympy nose
仍有下载失败,相同处理:
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com --user notebook-6.0.3-py3-none-any.whl
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com --user sympy-1.5.1-py2.py3-none-any.whl
最后再运行:
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --user numpy scipy-1.4.1-cp37-cp37m-linux_armv7l.whl matplotlib ipython jupyter pandas sympy nose
终于成功:
Successfully installed ipywidgets-7.5.1 jupyter-1.0.0 jupyter-console-6.1.0 nose-1.3.7 pandas-1.0.3 prompt-toolkit-3.0.5 pytz-2019.3 scipy-1.4.1 widgetsnbextension-3.5.1

本文详细记录了在树莓派4B上安装Scipy及其依赖库的步骤,包括使用pip安装numpy、scipy等库的过程,以及解决安装过程中遇到的问题,如手动下载whl文件和设置阿里云镜像。
991

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



