我正试图用Heroku部署我的第一个Python Telegram机器人,但当我这样做时,会出现两个错误:
ERROR: Could not find a version that satisfies the requirement pornhub-api==0.2.0
ERROR: No matching distribution found for pornhub-api==0.2.0
是不是不支持pornhub-api
模块或者什么?我对Python非常陌生,所以如果我问了一些愚蠢的问题,很抱歉,但是我找不到任何可以帮助我的东西
requirements.txt
文件如下所示:
telepot==12.7
pornhub-api==0.2.0
谢谢大家!
出现错误的所有过程:
Python app detected
Requirements file has been changed, clearing cached dependencies
Installing python-3.6.10
Installing pip
Installing SQLite3
Installing requirements with pip
Collecting telepot==12.7
Downloading telepot-12.7.tar.gz (73 kB)
ERROR: Could not find a version that satisfies the requirement pornhub-
api==0.2.0 (from -r
/tmp/build_"here the is written the build number"/requirements.txt (line 2)) (from
versions: none)
ERROR: No matching distribution found for pornhub-api==0.2.0 (from -r
/tmp/build_"here the is written the build number"/requirements.txt (line 2))
! Push rejected, failed to compile Python app.
! Push failed
您似乎正在使用Python 3.6,而该库表示它需要3.7或更高版本:
您应该能够request a newer runtime,方法是在存储库的根目录中添加一个名为
runtime.txt
的文件,其中包含所需的版本、提交并再次部署目前,Heroku supports个Python版本
如果您想使用Python 3.8.3(如果可以,为什么不使用最新版本?),那么
runtime.txt
应该包含以下内容:相关问题 更多 >
编程相关推荐