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

评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值