Python Can';t安装uwsgi。我有错误:命令出错,退出状态为1:
我想将uwsgi安装到Django项目的虚拟环境中,但当我使用Python Can';t安装uwsgi。我有错误:命令出错,退出状态为1:,python,django,uwsgi,wsgi,Python,Django,Uwsgi,Wsgi,我想将uwsgi安装到Django项目的虚拟环境中,但当我使用pip install uwsgi命令时,出现错误: Collecting uwsgi Using cached uWSGI-2.0.19.1.tar.gz (803 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\user\desktop\django\elearning\env\scripts\python.exe'
pip install uwsgi
命令时,出现错误:
Collecting uwsgi
Using cached uWSGI-2.0.19.1.tar.gz (803 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\desktop\django\elearning\env\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppDat
a\\Local\\Temp\\pip-install-rr2kmfru\\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rr2kmfru
\\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from s
etuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-ba
se 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-yv8e_7oq'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz#sha256=faa85e053c
0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869 (from https://pypi.org/simple/uwsgi/). Command errored out with exit status 1: python setup.py egg_info Check t
he logs for full command output.
收集uwsgi
使用缓存的uWSGI-2.0.19.1.tar.gz(803KB)
错误:命令出错,退出状态为1:
命令:“c:\users\user\desktop\django\elearning\env\scripts\python.exe'-c”导入io、os、sys、setuptools、tokenize;sys.argv[0]=“C:\\Users\\user\\AppDat
a\\Local\\Temp\\pip-install-rr2kmfru\\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\\setup.py''__文件\ \='''''''''C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rr2kmfru
\\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\\setup.py'';f=getattr(标记化“,”打开“,”打开)(”文件“,”如果os.path.exists(”文件“,”存在)或io.StringIO(”文件“,”从s
etuptools导入设置;setup()“”);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,_uu文件,_uu,“'exec'”))'egg\u信息——egg ba
se'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-yv8e_7oq'
cwd:C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\
完整输出(7行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\setup.py”,第3行,在
将uwsgiconfig导入为uc
文件“C:\Users\user\AppData\Local\Temp\pip-install-rr2kmfru\uwsgi_4ef6d74e2e904e84ac89967ff6772bba\uwsgiconfig.py”,位于
uwsgi_os=os.uname()[0]
AttributeError:模块“os”没有属性“uname”
----------------------------------------
警告:丢弃https://files.pythonhosted.org/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz#sha256=faa85e053c
0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869(从https://pypi.org/simple/uwsgi/). 命令出错,退出状态为1:python setup.py egg\u info Check t
他记录完整的命令输出。
uWSGI不能很好地使用Windows。看见