推送到heroku master时推送被拒绝,安装python依赖项时发生错误

时间:2019-08-28 03:38:40

标签: python django reactjs heroku

我正在将django-react项目部署到heroku。使用requirements.txt安装python依赖项时,推送被拒绝。有人说这是因为弃用了requirements.txt中的某些库。但是我不确定是哪个原因导致了问题以及如何解决。谢谢。

Heroku错误:

remote: -----> Build succeeded!
remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider upgrading to python-3.7.3
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.7.4
remote: -----> Installing pip
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

我的要求。txt:

certifi==2019.6.16
chardet==3.0.4
defusedxml==0.6.0
Django==2.2.4
django-allauth==0.39.1
django-cors-headers==3.1.0
django-countries==5.4
django-rest-auth==0.9.5
djangorestframework==3.10.2
gunicorn==19.9.0
idna==2.8
oauthlib==3.1.0
Pillow==6.1.0
python3-openid==3.1.0
pytz==2019.2
requests==2.22.0
requests-oauthlib==1.2.0
six==1.12.0
sqlparse==0.3.0
urllib3==1.25.3
whitenoise==4.1.3

2 个答案:

答案 0 :(得分:0)

boolean t = true & false; boolean t2 = true && false; 中包含setuptools==1.0

答案 1 :(得分:0)

使用

清除buildpack
$ heroku buildpacks:clear

然后再次设置构建包

$ heroku buildpacks:set heroku/python