V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
V2EX  ›  Python

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

  •  
  •   dianso · 2012-04-30 01:17:26 +08:00 · 4243 次点击
    这是一个创建于 4378 天前的主题,其中的信息可能已经有所发展或是发生改变。
    按网上搜到的教程,安装,nginx+uwsgi+bottle或者flask

    会出现:

    uWSGI Error
    wsgi application not found

    实在是搜不到方法了,求助与大家,谁能给个详细点的教程呢。
    9 条回复    1970-01-01 08:00:00 +08:00
    ystar
        1
    ystar  
       2012-04-30 01:32:04 +08:00
    你确定用的不是google? 这种问题度娘基本无解。。
    dianso
        2
    dianso  
    OP
       2012-04-30 01:46:24 +08:00
    @ystar 百度没试过,用的google,bing,搜到的教程用了后还是 wsgi application not found
    Oishi
        3
    Oishi  
       2012-04-30 15:44:59 +08:00
    7gong
        4
    7gong  
       2012-04-30 17:46:34 +08:00
    我在centos上安装uWSGI很顺利啊,python也就是装了一个dev开发包而已,建议你多看看安装手册
    ry_wang
        5
    ry_wang  
       2012-04-30 20:56:16 +08:00
    PATH的问题,仔细看文档,楼主
    dianso
        6
    dianso  
    OP
       2012-04-30 20:57:46 +08:00
    @Oishi @7gong @ry_wang 谢谢了,我再试试。
    vixvix
        7
    vixvix  
       2012-04-30 21:27:56 +08:00
    用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  
       2012-04-30 21:35:55 +08:00
    我现在用的是 supervisord 来管理 uwsgi,参考的是 limodou 的这篇: http://hi.baidu.com/limodou/blog/item/44b0738b1c865508c9fc7a36.html
    9hills
        9
    9hills  
       2012-04-30 22:06:38 +08:00
    @clino supervisord很好用+1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5491 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 785ms · UTC 06:53 · PVG 14:53 · LAX 23:53 · JFK 02:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.