【发布时间】:2011-09-20 23:35:49
【问题描述】:
这是this 问题的延续,但它已经偏离了,所以我开始了一个新问题。我想使用 Python 2.5 而不是 OS X 的默认 2.6。我已经为我的终端和诸如此类的东西设置了这个,但是每当 apache 运行时,它都会给我以下错误输出:
[Thu Jun 23 00:01:42 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jun 23 00:01:42 2011] [warn] mod_wsgi: Compiled for Python/2.5.4.
[Thu Jun 23 00:01:42 2011] [warn] mod_wsgi: Runtime using Python/2.6.1.
[Thu Jun 23 00:01:42 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Jun 23 00:01:42 2011] [notice] Digest: done
[Thu Jun 23 00:01:42 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8l DAV/2 mod_wsgi/3.3 Python/2.6.1 configured -- resuming normal operations
我已设置 WSGIPythonPath 以匹配 sys.path 在 python shell 中给我的内容:
WSGIPythonPath /System/Library/Frameworks/Python.framework/Versions/2.5
仍然没有运气。想法?
【问题讨论】:
-
有趣的线程,这也是我的问题。那么如何在单个盒子上托管多个使用多个 python 版本的站点呢?