升级当前python安装的工具

时间:2014-08-14 22:52:01

标签: apache python-3.x mod-wsgi ampps

我安装了带有的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.

0 个答案:

没有答案