MacBook M1安装Numpy,Pandas,Matplotlib
我的环境
MacBook M1 + Python3.9 + Pycharm 2021
安装遇到的问题
当我们尝试使用 pip3 install numpy
或者 pip3 install pandas
时,它会显示以下的错误
错误 ①
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy
Using cached numpy-1.19.4.zip (7.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: numpy
Building wheel for numpy (PEP 517): started
Building wheel for numpy (PEP 517): finished with status 'error'
Failed to build numpy
错误 ②
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
常见的Numpy、Pandas安装方法总结
方法一 :通过 Miniforge
安装
这种方法是目前最普遍的方法,但是在我使用了该方法安装后,Pycharm
中无法 import
,