plotly-dash 应用程序的 Heroku 部署 - 构建失败

时间:2021-02-04 21:56:53

标签: python heroku plotly-dash

我已经构建了一个 plotly-dash 应用程序,它在我的本地机器上运行良好,但我无法通过 Heroku 正确部署它。你可以找到我的code here。我一直在遵循 Heroku for Sharing Public Dash apps for Free 文档说明。一切都很好,直到我运行 git push heroku master。我收到以下错误:

<块引用>

remote: ERROR: Could not find a version that satisfies the requirement numpy==1.20.0 (from -r /tmp/build_4c17f53a/requirements.txt (line 19)) (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0b3, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1rc1, 1.11.1, 1.11.2rc1, 1.11.2, 1.11.3, 1.12.0b1, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0rc1, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0rc1, 1.19.0rc2, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5) remote: ERROR: No matching distribution found for numpy==1.20.0 (from -r /tmp/build_4c17f53a/requirements.txt (line 19)) remote: ! Push rejected, failed to compile Python app.

我想也许我没有重新安装正确的依赖项。激活虚拟环境后。我运行 pip install dashpip install plotlypip install kagglepip install pandas,最后是 pip install gunicorn。我还尝试了 pip install numpy 和许多其他我认为没有必要的库,但都无济于事。

我已经尝试编辑 requirements.txt 以便 numpy==1.19.5 并且实际上允许推送通过。但是,一旦我尝试在 Heroku 上打开应用程序,就会出现一些应用程序错误。任何帮助将不胜感激!

0 个答案:

没有答案