服务器问答

Ubuntu VPS 安装 uwsgi,测试出现文档中没有提及的错误
0
2021-05-17 11:59:24
idczone

根据 https://uwsgi-docs.readthedocs.org/en/latest/tutorials/Djang美国服务器o_and_nginx.html?highlight=django%20nginx 文档的步骤,在pip install uwsgi的一步提示找不到“Python.h”,运行setup失败,之后在测试uwsgi --http :8000 --wsgi-file test.py时提示:

uwsgi: option '--http' is ambiguous; possibilities: '--http-socket' '--http-socket-modifier2' '--http-socket-modifier1'
getopt_long() error

我之前没用Virtualenv在全局用apt-get安装过uwsgi,跑同一个测试脚本也出现同样的错误,请问有人遇到过类似的问题么?


apt-get install python-devel

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服