Windows 7中的uwsgi安装错误 [英] uwsgi installation error in windows 7

查看:334
本文介绍了Windows 7中的uwsgi安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试根据文档. m在Windows 7上出现以下错误.

Trying to install uwsgi according to documentation. I'm getting the below error on 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

推荐答案

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

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.

这篇关于Windows 7中的uwsgi安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆