
windows系统 python安装uwsgi教程
1. 直接在cmd中使用pip install uwsgi报错
直接在cmd中使用pip install uwsgi报错 AttributeError: module ‘os’ has no attribute ‘uname’ 报错说明: 是因为uwsgiconfig.py文件中,os.uname()是不支持windows系统的,platform模块是支持任何系统
ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-9kgm_b8s\\uwsgi\\setup.py", line 3, in <module> import uwsgiconfig as uc File "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-9kgm_b8s\\uwsgi\\uwsgiconfig.py", line 8, in <module> uwsgi_os = os.uname()[0] AttributeError: module 'os' has no attribute 'uname' ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-9kgm_b8s\\uwsgi\\ 2. 下载uwsgi离线包进行安雯uwsgi离线包:pypi/project/uWSGI/#files 下载后解压,找到文件uwsgiconfig.py
3. 修改uwsgiconfig.py文件使用什么工具修改自己喜欢 ,但注意是全部修改
4. 进入文件目录后再运行python sueup.py install发现还是报错了,原因是没有C语言编译 Exception: you need a C compiler to build uWSGI
5. 下载安装MinGW查看jingyan.baidu/article/0320e2c11564ca1b87507b8f.html
6 进入文件目录后再运行python sueup.py install安装成功
👁️ 阅读量:0
© 版权声明:本文《windows系统 python安装uwsgi教程》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686765913a335190.html。