Flask 应用程序未部署到 Heroku("ikp3db" 有问题?)
Flask application not deploying to Heroku (Problem with "ikp3db"?)
前几天我试图将我的应用程序部署到 Heroku,但我遇到了这个错误:
Collecting ikp3db==1.4
Could not find a version that satisfies the requirement 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 is a Python 3 debugger.
一般来说,调试器不应部署到生产服务器。它们代表着重大的安全风险。
I tried removing it from my requirements.txt
file and successfully pushed, although the default page ended up loading very slowly.
删除调试器不会导致您的应用程序变慢。还有其他事情正在发生。首先查看浏览器的开发工具,看看是否可以确定应用程序的哪个部分运行缓慢。根据您记录的信息,heroku logs
command 在这里可能也会有所帮助。
前几天我试图将我的应用程序部署到 Heroku,但我遇到了这个错误:
Collecting ikp3db==1.4
Could not find a version that satisfies the requirement 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 is a Python 3 debugger.
一般来说,调试器不应部署到生产服务器。它们代表着重大的安全风险。
I tried removing it from my
requirements.txt
file and successfully pushed, although the default page ended up loading very slowly.
删除调试器不会导致您的应用程序变慢。还有其他事情正在发生。首先查看浏览器的开发工具,看看是否可以确定应用程序的哪个部分运行缓慢。根据您记录的信息,heroku logs
command 在这里可能也会有所帮助。