首页 > 编程语言 >pip install -r requirements.txt报错python setup.py egg_info did not run successfully.

pip install -r requirements.txt报错python setup.py egg_info did not run successfully.

时间:2022-10-13 11:44:32浏览次数:57  
标签:info py requirements successfully 报错 install pip txt

requirements.txt中内容:

certifi==2018.1.18

Django==2.0.2
django-cors-headers==2.1.0
djangorestframework==3.7.7
idna==2.6
pytz==2017.3
requests==2.18.4
django-rest-swagger==2.1.2
python-docx==0.8.6
django-crispy-forms==1.7.2
django-formtools==2.1
django-import-export==1.0.0
django-reversion==2.0.13
python-crontab==2.2.8
PyMySQL==0.8.1
XlsxWriter==1.0.5
PyMySQL==0.8.1
python-docx==0.8.6
pypinyin==0.36.0

uWSGI==2.0.18

 

报错内容的一部分:

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\XXX\AppData\Local\Temp\pip-install-fkw8pho_\uwsgi_d4d40dae75ac42608d006f8c21543f7d\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\XXX\AppData\Local\Temp\pip-install-fkw8pho_\uwsgi_d4d40dae75ac42608d006f8c21543f7d\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?
[end of output]

 

解决方法:把requirements.txt文件中报错的库删除,单独安装,此处是uWSGI==2.0.18库,删除该库,单独安装,再使用命令pip install -r requirements.txt安装其他库时就能成功了

标签:info,py,requirements,successfully,报错,install,pip,txt
From: https://www.cnblogs.com/zhongxiaoyan/p/16787658.html

相关文章