首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >推送到heroku master时被拒绝,安装python依赖时出错

推送到heroku master时被拒绝,安装python依赖时出错
EN

Stack Overflow用户
提问于 2019-08-28 11:38:40
回答 2查看 66关注 0票数 0

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

Heroku错误:

代码语言:javascript
复制
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:

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

发布于 2019-08-28 11:45:39

requirements.txt中包含setuptools==1.0

票数 0
EN

Stack Overflow用户

发布于 2019-08-28 12:31:21

使用以下命令清除构建包

代码语言:javascript
复制
$ heroku buildpacks:clear

并再次设置buildpack

代码语言:javascript
复制
$ heroku buildpacks:set heroku/python
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57684727

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档