没有模块命名为OS – NGINX / UWSGI / NGINX
看了很多相关的post,大部分都指向了一个过时的版本的python,在uwsgi启动过程中导致了'no module named os'。 我跑了 print sys.version_info 它显示了Python 2.7,所有其他来源说,这是足够新的。 我的.ini文件看起来像: [uwsgi] chdir = app/app/ module = wsgi.py:application no-site = true virtualenv = app_venv master = true processes = 10 socket = app.sock chmod-socket = 777 vacuum = true die-on-term = true 而当我运行: uwsgi –ini app.ini 我懂了: Traceback (most recent call last): File "./wsgi.py", line 10, […]