我前几天试图将我的应用程序部署到Heroku,我遇到了这个错误:
收集ikp3db == 1.4 找不到满足要求ikp3db == 1.4的版本
ikp3db==1.4
是什么意思?我尝试从我的requirements.txt
文件中删除它并成功推送,虽然默认页面最终加载速度非常慢。
如何解决这个问题,以便我可以正确部署我的应用程序?
对于上下文,我试图在其中推送带有Socket.io的Flask应用程序。
以下是部署日志的相关部分:
remote: -----> Python app detected
remote: -----> Installing requirements with pip
remote: Collecting ikp3db==1.4 (from -r /tmp/build_6a70450c1a3e03480c6a367846a7a630/requirements.txt (line 37))
remote: Could not find a version that satisfies the requirement ikp3db==1.4 (from -r /tmp/build_6a70450c1a3e03480c6a367846a7a630/requirements.txt (line 37)) (from versions: 1.0, 1.1, 1.1.2, 1.1.3, 1.1.4)
remote: No matching distribution found for ikp3db==1.4 (from -r /tmp/build_6a70450c1a3e03480c6a367846a7a630/requirements.txt (line 37))
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
IKP3db是一个Python 3调试器。
一般来说,不应将调试器部署到生产服务器。它们代表着重大的安全风险。
我尝试从我的
requirements.txt
文件中删除它并成功推送,虽然默认页面最终加载速度非常慢。
删除调试器不会导致应用程序运行缓慢。还有其他事情要发生。首先查看浏览器的devtools,看看是否可以确定应用程序的哪个部分很慢。根据您记录的信息,heroku logs
command在这里也可能会有所帮助。