Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Heroku中构建python应用程序;can';我找不到新闻采集器_Python_Django_Git_Heroku_Pip - Fatal编程技术网

无法在Heroku中构建python应用程序;can';我找不到新闻采集器

无法在Heroku中构建python应用程序;can';我找不到新闻采集器,python,django,git,heroku,pip,Python,Django,Git,Heroku,Pip,在尝试推送到heroku时,我得到了一个“构建失败”的错误 在检查日志时,我发现这是由于以下原因: ERROR: Could not find a version that satisfies the requirement newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) (from versions: none) E

在尝试推送到heroku时,我得到了一个“构建失败”的错误

在检查日志时,我发现这是由于以下原因:

       ERROR: Could not find a version that satisfies the requirement newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) (from versions: none)
       ERROR: No matching distribution found for newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13))
 !     Push rejected, failed to compile Python app.
 !     Push failed
看起来我试图使用的“newscatcher”库的版本不正确。然而,根据PyPi,这是正确的版本


此外,我已经执行了
pip3-freeze>requirements.txt
,以收集我知道的所有相关依赖项。为什么git支持的pip包的正确版本会抛出此错误?如何修复此问题?

需要Python>=3.7,即3.7或3.8。您在Heroku为应用程序配置了什么Python?Python 3.7是我正在使用的Python