我想設置Django來使用MySQL。我收到以下錯誤,當我在localhost/mysite
如何在Mac上設置PYTHON_EGG_CACHE環境變量?
ExtractionError at/
Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: '/Library/WebServer/.python-eggs'
The Python egg cache directory is currently set to:
/Library/WebServer/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
鍵入從我知道我必須改變PYTHON_EGG_CACHE
環境變量指向Apache可以訪問目錄的錯誤消息。我嘗試添加以下到httpd.conf
SetEnv PYTHON_EGG_CACHE /var/www
<Directory /var/www>
Order deny,allow
Allow from all
</Directory>
,也只是SetEnv PYTHON_EGG_CACHE /var/www
到bashrc
,但似乎沒有任何解決問題。有關我可能會做錯什麼的建議?
注:www
是我創建
這工作。謝謝。 – David 2012-02-02 05:20:50