CentOS安装pandas:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the log

CentOS安装pandas:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the log_第1张图片

  • 网上方案一:

更新setuptools,无效

网上方案二:

通过pip3安装

方案二

wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz

tar -zxvf 1.5.5.tar.gz

cd pip-1.5.5/

python setup.py install

pip install pandas

如果失败解决方法:

wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-pandas-0.17.1-1.el7.x86_64.rpm

yum install python-pandas

这时可能会提示错误:Requires: liblz4.so.1()(64bit)

wget https://rpmfind.net/linux/centos/7.6.1810/os/x86_64/Packages/lz4-1.7.5-2.el7.x86_64.rpm

rpm -ivh lz4-1.7.5-2.el7.x86_64.rpm

再重新安装pandas即可:yum install python-pandas

  • References

  1. centos7 安装pandas

你可能感兴趣的:(#,Linux)