簡體   English   中英

推送到heroku master時推送被拒絕,安裝python依賴項時發生錯誤

[英]Push got rejected when push to heroku master, error happened when install python dependencies

我正在將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

我的requirements.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

requirements.txt包含setuptools==1.0

使用以下命令清除構建包

$ heroku buildpacks:clear

並再次設置buildpack

$ heroku buildpacks:set heroku/python

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM