python setup.py egg_info
安装Python项目时遇到以下报错,解决办法:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-22Snbe/django-cors-headers/
You are using pip version 8.1.2, however version 23.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You should consider upgrading via the 'pip install --upgrade pip' command.
# 升级pip:
1.sudo wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
2.sudo python get-pip.py
3.pip -V
# 升级pip3:
1.sudo wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
2.sudo python3 get-pip.py
3.pip -V
未解决
python3 -m pip install --upgrade pip