【问题标题】:Deployong Django App to Heroku but Heroku pip install can't find module versions matching the requirement.txt将 Django 应用程序部署到 Heroku 但 Heroku pip install 找不到与 requirements.txt 匹配的模块版本
【发布时间】:2019-05-24 13:47:28
【问题描述】:

所以,我一直在尝试将我的 Django 应用程序部署到 heroku,但 Heroku 正在尝试 pip 安装 requirements.txt 中列出的旧版本的模块

即Heroku 正在尝试安装 anaconda-client==1.2.2,但是当我们在本地进行 pip 安装时得到了 anaconda-client==1.7.2。

Django 版本 == 2.1.4 Python 版本 == 3.7.0

screen capture of Heroku deployment error message

我刚刚开始学习 python 和 django 大约一个月了.. 非常感谢提供的任何帮助。非常感谢!

【问题讨论】:

    标签: python django heroku


    【解决方案1】:

    在你的根目录下创建runtime.txt并添加python-3.7.0

    【讨论】:

      猜你喜欢
      • 2014-07-16
      • 2016-09-06
      • 2019-12-08
      • 2018-03-31
      • 1970-01-01
      • 1970-01-01
      • 2016-11-16
      • 2012-10-22
      相关资源
      最近更新 更多