V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Adward
V2EX  ›  服务器

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

  •  
  •   Adward · 2015-01-13 11:31:09 +08:00 · 5401 次点击
    这是一个创建于 3407 天前的主题,其中的信息可能已经有所发展或是发生改变。

    根据 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,跑同一个测试脚本也出现同样的错误,请问有人遇到过类似的问题么?

    1 条回复    2015-01-13 11:57:55 +08:00
    passluo
        1
    passluo  
       2015-01-13 11:57:55 +08:00
    apt-get install python-devel
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2891 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:57 · PVG 19:57 · LAX 04:57 · JFK 07:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.