安装
尝试直接使用命令行安装pandas
$ pip3 install pandas
运行报错
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
这是因为numpy
暂时没有发布针对arm架构的stable包,故pip尝试下载源码自行编译,由于平台不兼容,产生此错误。
现在numpy
发布了针对arm架构的pre版本,对于绝大部分功能都已经做了实现,因此最简单的解决方案就是安装pre版本,从而轻松解决此问题。
pip3 install --compile --pre
安装成功后,重试
pip3 install pandas
成功!