ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm

文章目录

    • 报错代码
    • 报错说明:
    • 解决办法

报错代码

Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e7/1e/3dcca007f974fe4eb369bf1b8629d5e342bb3055e2001b2e5340aaefae7a/uwsgi-2.0.18.tar.gz (801 kB)
|████████████████████████████████| 801 kB 234 kB/s
ERROR: Command errored out with exit status 1:
command: ‘d:\python\anaconda\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\yy\AppData\Local\Temp\pip-install-qaqjbx_1\uWSGI\setup.py’"’"’; _
file_=’"’"‘C:\Users\yy\AppData\Local\Temp\pip-install-qaqjbx_1\uWSGI\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"
‘"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base ‘C:\Users\yy\AppData\Local\Temp\pip-pip-egg-info-5eljswd4’
cwd: C:\Users\yy\AppData\Local\Temp\pip-install-qaqjbx_1\uWSGI
Complete output (7 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\yy\AppData\Local\Temp\pip-install-qaqjbx_1\uWSGI\setup.py”, line 3, in
import uwsgiconfig as uc
File “C:\Users\yy\AppData\Local\Temp\pip-install-qaqjbx_1\uWSGI\uwsgiconfig.py”, line 8, in
uwsgi_os = os.uname()[0]
AttributeError: module ‘os’ has no attribute ‘uname’
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output


报错说明:

  • pip install uwsgi
    报错:AttributeError: module ‘os’ has no attribute ‘uname’

  • 是因为uwsgiconfig.py文件中,os.uname()是不支持windows系统的,platform模块是支持任何系统。

解决办法

  • 根据操作系统安装platform模块,修改uname()为platfrom()

你可能感兴趣的:(ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm)