Ubuntu VPS 安装 uwsgi,测试出现文档中没有提及的错误

2015-01-13 11:31:09 +08:00
 Adward

根据 https://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_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,跑同一个测试脚本也出现同样的错误,请问有人遇到过类似的问题么?

5416 次点击
所在节点    服务器
1 条回复
passluo
2015-01-13 11:57:55 +08:00
apt-get install python-devel

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/161666

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX