python setup.py egg_info
安装Python项目时遇到以下报错,解决办法:
[scode type=”red”]Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-22Snbe/django-cors-headers/[/scode]
[scode type=”yellow”]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.[/scode]
# 升级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
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容