试图把Django应用程序推到anaconda附近的Heroku错误?

2024-03-28 20:27:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试推一个Django应用程序,它使用NLTK和sciket learn。我已经把所有相关的依赖项放在要求.txt文件,但我一直得到这个错误。有什么建议吗?你知道吗

remote: -----> Installing requirements with pip
remote: Collecting alabaster==0.7.10 (from -r /tmp/build_e87edffdf382e76739e44cf354aacd2b/requirements.txt (line 1))
remote: Downloading alabaster-0.7.10-py2.py3-none-any.whl
remote: Collecting anaconda-client==1.6.5 (from -r /tmp/build_e87edffdf382e76739e44cf354aacd2b/requirements.txt (line 2))
remote: Could not find a version that satisfies the requirement anaconda-client==1.6.5 (from -r /tmp/build_e87edffdf382e76739e44cf354aacd2b/requirements.txt (line 2)) (from versions: 1.1.1, 1.2.2)
remote: No matching distribution found for anaconda-client==1.6.5 (from -r /tmp/build_e87edffdf382e76739e44cf354aacd2b/requirements.txt (line 2))
remote: ! Push rejected, failed to compile Python app.
remote: 
remote: ! Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to XXX.
remote: 
To https://git.heroku.com/secure-mountain-49046.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/XXX.git'

Tags: tofromgitbuildtxtclientremoteline