如何解决Django Heroku需求部署失败

我正在尝试将我的Django应用程序的登台版本部署到Heroku,并且收到错误消息。我之所以说它是一个临时应用程序,是因为我的生产应用程序运行良好,但是我认为自从我设置了它以来,也许有些软件包已经更新了?

该错误指向的是我不理解的python-http-client==3.1.0,因为我的requirements.txt具有python-http-client==3.2.1

我想我很久以前就使用Pipenv,但最终转回不使用它,说实话,我对此感到有些困惑。

我目前没有pipfile或pipfile.lock,但是Heroku说 在部署过程中从Pipfile.lock 安装依赖项,所以我很茫然。这是错误:

remote: -----> Installing python-3.6.5
remote: -----> Installing pip
remote: -----> Installing dependencies with Pipenv 2018.5.18…
remote:        Installing dependencies from Pipfile.lock (d4a1e0)…
remote:        An error occurred while installing python-http-client==3.1.0! Will try again.
remote:        Installing initially–failed dependencies…
remote:        Collecting python-http-client==3.1.0
remote:          Using cached https://files.pythonhosted.org/packages/5c/5c/9e0cde562757bdb385a3644235e7c4da6f76c8a43d573eb76384ef461d40/python_http_client-3.1.0-py3-none-any.whl
remote:
remote:        THESE PACKAGES DO NOT MATCH THE HASHES FROM Pipfile.lock!. If you have updated the package versions,please update the hashes. Otherwise,examine the package contents carefully; someone may have tampered with them.
remote:            python-http-client==3.1.0 from https://files.pythonhosted.org/packages/5c/5c/9e0cde562757bdb385a3644235e7c4da6f76c8a43d573eb76384ef461d40/python_http_client-3.1.0-py3-none-any.whl#sha256=84267d8dcb7bcdf4c5cef321a533cc584c5b52159d4a4d3d4139bfed347b8006 (from -r /tmp/pipenv-6k8jlqu1-requirements/pipenv-73gxws2n-requirement.txt (line 1)):
remote:                Expected sha256 7e430f4b9dd2b621b0051f6a362f103447ea8e267594c602a5c502a0c694ee38
remote:                     Got        84267d8dcb7bcdf4c5cef321a533cc584c5b52159d4a4d3d4139bfed347b8006

似乎我需要以某种方式告诉heroku不要使用pipfile.lock,但由于它不在我的代码中,所以我不知道从哪里得到它。

任何帮助,不胜感激。这些东西很难解决!

如果我没有提供任何重要信息,请告诉我。

yin088 回答:如何解决Django Heroku需求部署失败

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3148221.html

大家都在问