【问题标题】:Gunicorn in .sh file could not import python packages installed.sh 文件中的 Gunicorn 无法导入已安装的 python 包
【发布时间】:2020-02-04 10:06:07
【问题描述】:

我正在使用 gunicorn 来部署烧瓶应用程序,并且我已将 gunicorn 的完整命令放在 .sh 文件中。但似乎我在项目中使用的 python 导入并没有使用.sh 文件运行导入的母鸡。没有它,我可以导入它。我认为问题在于gunicorn。我正在使用gunicorn3python3.6

这发生在第一次flask 导入时,所以我在系统上安装了flask 的.deb 文件,然后开始使用其他包。所以,我的推论是应该是独角兽问题。

【问题讨论】:

标签: python-3.x flask sh gunicorn


【解决方案1】:

我创建了一个虚拟环境并在那里安装了 gunicorn,并使用那个 gunicorn 而不是 gunicorn3,它起作用了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-21
    • 2022-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多