为了账号安全,请及时绑定邮箱和手机立即绑定

安装 sqlite3 时 Heroku python 应用程序无法构建

安装 sqlite3 时 Heroku python 应用程序无法构建

慕田峪4524236 2022-03-09 21:04:50
我在 Heroku 上的 Python 应用程序未能始终如一地构建:-----> Python app detected !     Python has released a security update! Please consider upgrading to python-3.6.8       Learn More: https://devcenter.heroku.com/articles/python-runtimes-----> Found python-3.6.4, removing-----> Installing python-3.6.7-----> Installing pip-----> Installing SQLite3 !     Push rejected, failed to compile Python app. !     Push failed这是一个在本地运行良好的 Django 应用程序。python-3.6.7中指定runtime.txt,我已经尝试过其他版本。我的Procfile包含:release: python <appname>/manage.py migrateweb: python <appname>/manage.py runserver 0.0.0.0:$PORT我可能可以使用gunicorn,但这在这里无关紧要。构建日志似乎没有为我提供任何信息。requirements.txtchardet==3.0.4Django==2.0.2idna==2.6pytz==2018.3requests==2.18.4urllib3==1.22dj-database-url==0.5.0setuptools==1.0.0
查看完整描述

2 回答

?
繁星淼淼

TA贡献1775条经验 获得超11个赞

在你的 app.json 中试试这个。虽然这是一个临时解决方案


"buildpacks": [

    {

      "url": "https://github.com/heroku/heroku-buildpack-python.git#remove- 

              sqlite"

    },


查看完整回答
反对 回复 2022-03-09
?
FFIVE

TA贡献1797条经验 获得超6个赞

见:https ://travis-ci.org/heroku/heroku-buildpack-python

将堆栈从升级heroku-16heroku-18in app.json


查看完整回答
反对 回复 2022-03-09
  • 2 回答
  • 0 关注
  • 190 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号