pip安装任何包都会报错Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*
问题描述:
在用pip安装pwntools时报错(centos平台)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4B2Y9s/psutil/
上网查了下,终端输入
sudo python -m pip install --upgrade --force pip
然而继续报错
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Gm8lkk/pip/
答
应该是把系统自带的python软链接修改带来的后果
答
用pip2无果,排除版本问题
答
easy_install -U setuptools
同样无果
答
又试了一下用pip安装其他常用的包,都会报同样的错
答
装了个依赖包
yum install gcc mariadb-devel
依然无果
答
重装pip
还是无果
答
重装python
删除环境变量path中和windows app有关的内容
答
换了个自带python2.7.12的Ubuntoo16,依旧无果
答
进入root运行再次无果