Heroku上传-找不到满足anaconda-client == 1.4.0要求的版本 [英] Heroku Upload - Could not find a version that satisfies the requirement anaconda-client==1.4.0
问题描述
我试图将Django应用程序推送到Heroku,但是在运行 git push heroku master
时遇到以下错误:
I'm trying to push a Django app onto Heroku, but am getting the following error upon running git push heroku master
:
Counting objects: 80, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (80/80), 990.21 KiB | 0 bytes/s, done.
Total 80 (delta 20), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! The latest version of Python 2 is python-2.7.14 (you are using
python-2.7.12, which is unsupported).
remote: ! We recommend upgrading by specifying the latest version
(python-2.7.14).
remote: Learn More: https://devcenter.heroku.com/articles/python-
runtimes
remote: -----> Installing python-2.7.12
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote: Collecting alabaster==0.7.7 (from -r
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 1))
remote: Downloading alabaster-0.7.7-py2.py3-none-any.whl
remote: Collecting anaconda-client==1.4.0 (from -r
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2))
remote: Could not find a version that satisfies the requirement
anaconda-client==1.4.0 (from -r
/tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2)) (from
versions: 1.1.1, 1.2.2)
remote: No matching distribution found for anaconda-client==1.4.0 (from
-r /tmp/build_a1f6d188f9e0e61e01076a73d4e10542/requirements.txt (line 2))
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to demo-freshstart.
似乎与Anaconda有关,但我很早就对Anaconda有所了解。 txt,因此认为它可能只是由于其他原因而被赶上的第一件事。
Seems like it has something to do with Anaconda, but I see Anaconda pretty early on in my requirements.txt, so thinking it could just be the first thing it's getting caught up on for some other reason.
推荐答案
对于每条消息
没有找到X的匹配分布
No matching distribution found for X
得到的结果,您必须手动将其从requirements.txt文件中删除:
that you get, you have to manually remove that line from requirements.txt file:
1-删除出现X的行
2-保存文件
3-提交
4-推
1 - remove the line where X appears
2 - save the file
3 - commit
4 - push
再次执行该操作,以解决报告的下一个错误提示,直到到达在requirements.txt中包含的列表的末尾
do it again for the next error reported by the prompt, until you reach the end of the list cointained in requirements.txt
这篇关于Heroku上传-找不到满足anaconda-client == 1.4.0要求的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!