Flask应用程序未部署到Heroku(“ikp3db”有问题?)

2024-09-30 04:40:04 发布

您现在位置:Python中文网/ 问答频道 /正文

前几天我尝试将我的应用程序部署到Heroku时遇到了以下错误:

Collecting ikp3db==1.4
Could not find a version that satisfies the requirement ikp3db==1.4

ikp3db==1.4是什么意思?我试着从我的requirements.txt文件中删除它并成功地推送,尽管默认页面加载速度非常慢。你知道吗

如何修复此问题以便正确部署应用程序?你知道吗

在上下文中,我尝试使用套接字.io在里面。你知道吗

以下是部署日志的相关部分:

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

Tags: frombuildtxt应用程序remoteversion部署line
1条回答
网友
1楼 · 发布于 2024-09-30 04:40:04

its PyPI page

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.

删除调试器不会导致应用程序运行缓慢。还有别的事。从查看浏览器的devtools开始,看看是否可以确定应用程序的哪个部分比较慢。根据您记录的信息,^{} command在这里可能也很有用。你知道吗

相关问题 更多 >

    热门问题