[Errno 13] Permission denied: '/root/.python-eggs' The Python egg cache directory is currently set to: /root/.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缓存目录无权限,所以在运行代码开始的地方加上以下语句来重新更改他的缓存目录
import os os.environ['PYTHON_EGG_CACHE'] = '/tmp'