簡體   English   中英

.sh 文件中的 Gunicorn 無法導入已安裝的 python 包

[英]Gunicorn in .sh file could not import python packages installed

我正在使用 gunicorn 部署 Flask 應用程序,並且已將 gunicorn 的完整命令放在.sh文件中。 但似乎我在項目中使用的 python 導入沒有使用.sh文件運行導入。 沒有它,我可以導入它。 我認為問題出在 gunicorn 上。 我正在使用gunicorn3python3.6

這發生在第一個flask導入時,所以我在系統上安裝了燒瓶的 .deb 文件,然后從其他包開始。 所以,我的推斷是它應該是gunicorn問題。

我創建了一個虛擬環境並在那里安裝了 gunicorn 並使用了 gunicorn 而不是 gunicorn3,它起作用了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM