Heroku Deploy Error : No matching distribution found for anaconda-client==1.6.14(Heroku 部署错误:没有为 anaconda-client==1.6.14 找到匹配的发行版)
问题描述
我尝试将使用 python 的 Dash 框架构建的应用程序部署到 Heroku.按照此处发布的部署说明进行操作.
I using trying to deploy an application built using python's Dash Framework to Heroku. Following the deploy instructions posted here.
推送到主存储库时遇到问题.它看起来与 anaconda 安装冲突.
I am having an issue when pushing to master repository. Conflict with anaconda installation it looks like.
Cmd: git push heroku master
Collecting anaconda-client==1.6.14 (from -r
/tmp/build_7c37a8969b8001471e926143aa44a460/requirements.txt (line 2))
remote: Could not find a version that satisfies the requirement
anaconda-client==1.6.14 (from -r
/tmp/build_7c37a8969b8001471e926143aa44a460/requirements.txt (line 2)) (from
versions: 1.1.1, 1.2.2)
remote: No matching distribution found for anaconda-client==1.6.14 (from
-r /tmp/build_7c37a8969b8001471e926143aa44a460/requirements.txt (line 2))
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to stroom-dash.
remote:
To https://git.heroku.com/stroom-dash.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/stroom-dash.git'
推荐答案
您正在使用 Heroku 的文档来部署不支持 Conda 运行时的 Python buildpack.Heroku 推荐的方法是使用 Docker(例如 here)将 Conda 运行时部署到Heroku.
You're using Heroku's documentation to deploy with the Python buildpack which doesn't support a Conda runtime. The Heroku recommended approach is to use Docker (example here) to deploy a Conda runtime to Heroku.
另一种选择是简单地使用 Conda buildpack 而不是 Docker 映像.
Another option would be to simply use a Conda buildpack instead of the Docker image.
这篇关于Heroku 部署错误:没有为 anaconda-client==1.6.14 找到匹配的发行版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Heroku 部署错误:没有为 anaconda-client==1.6.14 找到匹
基础教程推荐
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
