Windows 7中的uwsgi安装错误

Sta*_*nge 12 django nginx uwsgi

尝试根据文档安装uwsgi .我在Windows 7上遇到以下错误.

我该怎么办?

(uwsgi-tutorial) C:\Users\Home\Videos\uwsgi-tutorial\mysite>pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "c:\users\home\appdata\local\temp\pip-build-04g1m6\uwsgi\setup.py", line 3, in <module>
    import uwsgiconfig as uc
  File "uwsgiconfig.py", line 8, in <module>
    uwsgi_os = os.uname()[0]
AttributeError: 'module' object has no attribute 'uname'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\home\appdata\local\temp\pip-build-04g1m6\uwsgi
Run Code Online (Sandbox Code Playgroud)

Gwy*_*idD 13

uWSGI只能使用cygwin在Windows上编译.在普通的Windows控制台中没有uname这样的东西,但它存在于cygwin中.如果您已经在cygwin控制台中,请尝试运行uname命令,如果存在,请检查os.uname()cygwin中的python是否也在运行.

  • 我在 cygwin 上遇到同样的错误。但是输入 uname 命令显示结果 (2认同)

Rei*_*hin 5

前方最新消息,uWSGI 在 Windows 上 Ubuntu 上的 bash 中完美运行在 Windows 10 上

由于 Linux 子系统仍处于测试阶段,我不建议用于生产用途,但这将满足所有开发需求。

PS我知道op询问有关Windows 7的问题,但是随着Windows 10和Linux子系统稍后进入Windows世界,我想我可以把这个留在这里。