我在共享主机服务器上使用virtualenv
设置django项目,我没有root access
。此外sudo
确实在需要PIL/Pillow
被installed.But当我尝试在Django模型中使用ImageField的PIL /枕头的替代
pip install pillow
模型不works.I现在用ImageField
我得到这个错误:
unable to execute gcc: Permission denied
error: command 'gcc' failed with exit status 1
那么,有没有替代方案可用于PIL/Pillow
哪些可以安装没有root access and gcc permissions
? (甚至在virtualenv没有权限)
将您的提供者更改为明智的提供者。您可以使用支持Python和gcc的virtku,virtualenv和Pillow/PIL plus免费提供;而不是试图解决这个问题。或者Google App Engine,OpenStack等。 – 2014-10-05 10:00:27
是的,如果事情没有解决,会将应用程序迁移到云... – 2014-10-08 18:59:25