uwsgi installation error in windows 7

喜你入骨 提交于 2019-12-04 09:18:15

问题


Trying to install uwsgi according to documentation. I'm getting the below error on Windows 7.

What should I do?

(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

回答1:


uWSGI can be compiled on Windows only using cygwin. There is no such thing as uname in normal Windows console, but it exists inside cygwin. If you're already in cygwin console, try to run uname command, if that exists, check if os.uname() in python inside cygwin is also working.




回答2:


Latest news from the front, uWSGI perfectly works on Windows 10 in bash on Ubuntu on Windows

As Linux subsystem still in beta, i'd not recommend for production usage, however this will cover all dev needs.

P.S. i know that op ask about Windows 7, however as Windows 10 and Linux subsystem come to Windows world later, i think i can leave this here.



来源:https://stackoverflow.com/questions/32163910/uwsgi-installation-error-in-windows-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!