python - Heroku 在 requirements.txt 中找不到分布
问题描述
我正在尝试使用 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
解决方案
推荐阅读
- tensorflow - 如何在tensorflow的while循环中迭代和更改变量的值
- asp.net-mvc-5 - Visual Studio 2017 无法启动调试适配器“chrome”
- r - 如何组合两个data.tables的列?
- load-testing - 如何为炮兵负载测试设置代理 url?
- python - Python 控制台菜单在 selection_menu 中运行 command_item
- javascript - 从 HTML 页面获取所有输入 id 值
- android-recyclerview - 创建2 RecyclerView 垂直滚动成水平滚动?
- wordpress - 如何使用 WAVE 可访问性报告解决此标签问题?
- amazon-redshift - 如果存在则删除组
- reactjs - SyntaxError:意外的令牌'...'。需要一个属性名称