pip安装软件时出现Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build*的解决方案
本文只提供本人的一些经验,不代表可以解决所有人的问题。
pip安装软件时出现:Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-*(其中×与要安装的软件有关)
比如安装pip install pyparsing==1.5.7出现以下错误: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-WImLdR/pyparsing/
解决方案
安装pip3即可
yum -y install epel-release
yum -y install python3
yum -y install python-pip
yum -y install python3-pip
升级pip3和工具包
pip3 install --upgrade pip
pip3 install --upgrade setuptools
后续安装软件包时调用pip3命令即可