我在将Django应用程序推送到Heroku时出现问题。安装PIL似乎有错误。我传统上遇到PIL b/c问题,我在Windows上,所以使用pip install或easy_install无法正常工作,因为找不到“vcvarsall.bat”安装PIL依赖于虚拟环境的Heroku错误
因此,作为一种快速解决方案,我去了this site并跑了安装PIL的.exe版本。我只好让PIL问题到我的虚拟环境,从而创建虚拟环境时,我用这个
virtualenv --system-site-packages venv
现在我使用
git push heroku master
和我得到这个回
Downloading/unpacking PIL==1.1.7 (from -r requirements.txt)
Could not find any downloads that satisfy the requirement PIL==1.1.7 (line 2))
...
Heroku push rejected, failed to compile Python/Django app
! [remote rejected] m aster -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]'
我怎样才能过去PIL?
谢谢。对django-storage和pypm有同样的问题 - 有什么想法? –
和pywin32?被requirements.txt摧毁 –
编辑我的回答以回应你的问题 –