使用mod_wsgi
在Apache2中运行Flask应用程序时获取ImportError。
[Mon Jun 13 23:54:47.988630 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] __import__('werkzeug.exceptions')
[Mon Jun 13 23:54:47.988638 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] File "/Users/dr/.virtualenvs/proj/lib/python2.7/site-packages/werkzeug/exceptions.py", line 71, in <module>
[Mon Jun 13 23:54:47.988759 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] from werkzeug.wrappers import Response
[Mon Jun 13 23:54:47.988767 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] File "/Users/dr/.virtualenvs/proj/lib/python2.7/site-packages/werkzeug/wrappers.py", line 26, in <module>
[Mon Jun 13 23:54:47.989193 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] from werkzeug.http import HTTP_STATUS_CODES, \\
[Mon Jun 13 23:54:47.989202 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] File "/Users/dr/.virtualenvs/proj/lib/python2.7/site-packages/werkzeug/http.py", line 28, in <module>
[Mon Jun 13 23:54:47.989421 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] from urllib.request import parse_http_list as _parse_list_header
[Mon Jun 13 23:54:47.989438 2016] [wsgi:error] [pid 1850] [remote 127.0.0.1:0] ImportError: No module named request