3

我安装了 Python 2.7 和。我尝试修改 python.conf 以使其指向 Python 3.3 的另一个安装,但这会导致 Apache 启动时出错。

LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonPath "C:/Python33/Lib;C:/Python33/Lib/site-packages;C:/Python33/DLLs"
WSGIPythonHome "C:/Python33"

它会产生以下错误:

[Fri Aug 15 01:48:38.114336 2014] [mpm_winnt:notice] [pid 6084:tid 412] AH00418: Parent: Created child process 5592
  File "C:/Python33\lib\site.py", line 173
    file=sys.stderr)
        ^
SyntaxError: invalid syntax
[Fri Aug 15 01:48:39.146395 2014] [mpm_winnt:crit] [pid 6084:tid 412] AH00419: master_main: create child process failed. Exiting.
4

0 回答 0