安装成功seaborn后,在import seaborn提示没有安装scipy包,于是便开始了不断安装失败的过程。
介绍下环境:mac m1芯片,miniforge,python38
尝试过的方法:
第一种:直接安装
pip install scipy
sudo conda pip install scipy
错误提示:
……
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.
第二种:增加镜像源
pip3 install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy
同样报错
第三种:在pycharm中安装
在pycharm配置号环境后,在【Pycharm】-【Perference】-【Project】-【Python Interpreter】
点击+号
本文详细记录了在Mac M1芯片环境下,使用Python安装Scipy过程中遇到的各种错误及解决方法,包括直接安装、增加镜像源、在PyCharm中安装的失败尝试,最终通过下载特定版本的whl文件并手动安装成功。
最低0.47元/天 解锁文章
9633

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



