因为os.uname()方法在window不可用,导致错误。
解决方案很简单:
1.https://pypi.python.org/pypi/uWSGI/下载你想要的uwsgi 压缩文件
2.在你需要用它的python文件的site-packages文件中解压缩
3.找到uwsgiconfig.py配置文件
4.使用任何一款python IDE打开它,在开头输入 import platform,然后启动替换(一般快捷为Ctrl+H)
5.寻找 os.uname 替换为 platform.uname
6.replaceall 注意搜索时不要加括号否则没反应(正则)