找不到gevent模块
Cannot find gevent module
我在 Openshift.com 上创建了一个 Python-Flask 应用程序 运行ning(最初是 https://github.com/ryanj/flask-postGIS 的克隆)。如果用户过早停止下载文件,应用程序会崩溃并抛出 "Broken Pipe Error".
我已经阅读了 [1], [2] that using the "gevent" library may help resolve/mitigate this issue. Even though I have added gevent into the "requirements.txt" and the "setup.py" files, when app.py 运行s,它仍然找不到它,使用 Flask,并且我继续 运行 进入 Broken Pipe 错误,如下所述。
我缺少什么 step/code 允许此应用程序使用 gevent 而不是 flask?
使用 pip 安装 gevent
pip install gevent
我在 Openshift.com 上创建了一个 Python-Flask 应用程序 运行ning(最初是 https://github.com/ryanj/flask-postGIS 的克隆)。如果用户过早停止下载文件,应用程序会崩溃并抛出 "Broken Pipe Error".
我已经阅读了 [1], [2] that using the "gevent" library may help resolve/mitigate this issue. Even though I have added gevent into the "requirements.txt" and the "setup.py" files, when app.py 运行s,它仍然找不到它,使用 Flask,并且我继续 运行 进入 Broken Pipe 错误,如下所述。
我缺少什么 step/code 允许此应用程序使用 gevent 而不是 flask?
使用 pip 安装 gevent
pip install gevent