我已将我的django版本从1.5.2(如果我不记得不好)升级到1.6,现在当我在localhost上执行我的项目时,我收到此错误:
IOError at /
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt'
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.6.1
Exception Type: IOError
Exception Value:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt'
Exception Location: /usr/local/lib/python2.7/dist-packages/pkg_resources.py in _get, line 1320
Python Executable: /usr/bin/python
Python Version: 2.7.5
答案 0 :(得分:5)
它看起来像权限错误。尝试使用chmod
命令(http://www.thegeekstuff.com/2010/06/chmod-command-examples/)更改权限。
例如
sudo chmod -R 755 problematic_folder