V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Adward
V2EX  ›  服务器

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

  •  
  •   Adward · Jan 13, 2015 · 5992 views
    This topic created in 4122 days ago, the information mentioned may be changed or developed.

    根据 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 replies    2015-01-13 11:57:55 +08:00
    passluo
        1
    passluo  
       Jan 13, 2015
    apt-get install python-devel
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:31 · PVG 15:31 · LAX 00:31 · JFK 03:31
    ♥ Do have faith in what you're doing.