看了很多相关的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, in <module> import os ImportError: No module named os
如果有人能指出我正确的方向,将不胜感激。 干杯。