Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
796 views
in Technique[技术] by (71.8m points)

python - Heroku Deploy Error : No matching distribution found for anaconda-client==1.6.14

I using trying to deploy an application built using python's Dash Framework to Heroku. Following the deploy instructions posted here.

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'
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

Another option would be to simply use a Conda buildpack instead of the Docker image.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...