【发布时间】:2020-01-01 05:28:36
【问题描述】:
我正在将 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
【问题讨论】:
标签: python django reactjs heroku