推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
dianso
0.01D
V2EX  ›  Python

求助,谁能给一个在centos或者debian/ubuntu上安装python+框架的教程啊?

  •  
  •   dianso · Apr 30, 2012 · 4978 views
    This topic created in 5151 days ago, the information mentioned may be changed or developed.
    按网上搜到的教程,安装,nginx+uwsgi+bottle或者flask

    会出现:

    uWSGI Error
    wsgi application not found

    实在是搜不到方法了,求助与大家,谁能给个详细点的教程呢。
    9 replies    1970-01-01 08:00:00 +08:00
    ystar
        1
    ystar  
       Apr 30, 2012
    你确定用的不是google? 这种问题度娘基本无解。。
    dianso
        2
    dianso  
    OP
       Apr 30, 2012
    @ystar 百度没试过,用的google,bing,搜到的教程用了后还是 wsgi application not found
    7gong
        4
    7gong  
       Apr 30, 2012
    我在centos上安装uWSGI很顺利啊,python也就是装了一个dev开发包而已,建议你多看看安装手册
    ry_wang
        5
    ry_wang  
       Apr 30, 2012
    PATH的问题,仔细看文档,楼主
    dianso
        6
    dianso  
    OP
       Apr 30, 2012
    @Oishi @7gong @ry_wang 谢谢了,我再试试。
    vixvix
        7
    vixvix  
       Apr 30, 2012
    用virtualevn(或者其它的)建立开发/发布环境。
    那个error, 是wsgi的配置不对,主要是路径问题。

    假设你要跑:
    /some/path/my_wsgi.py

    你的uwsgi-app.ini可以是这样:
    chdir=/some/path
    module=my_wsgi:application

    然后
    uwsgi --ini uwsgi-app.ini
    clino
        8
    clino  
       Apr 30, 2012
    我现在用的是 supervisord 来管理 uwsgi,参考的是 limodou 的这篇: http://hi.baidu.com/limodou/blog/item/44b0738b1c865508c9fc7a36.html
    9hills
        9
    9hills  
       Apr 30, 2012
    @clino supervisord很好用+1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2877 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 02:59 · PVG 10:59 · LAX 19:59 · JFK 22:59
    ♥ Do have faith in what you're doing.