![](/img/trans.png)
[英]python packages are not installed throughCI/CD pipelines,import error , package not found
[英]Gunicorn in .sh file could not import python packages installed
我正在使用 gunicorn 部署 Flask 應用程序,並且已將 gunicorn 的完整命令放在.sh
文件中。 但似乎我在項目中使用的 python 導入沒有使用.sh
文件運行導入。 沒有它,我可以導入它。 我認為問題出在 gunicorn 上。 我正在使用gunicorn3
和python3.6
這發生在第一個flask
導入時,所以我在系統上安裝了燒瓶的 .deb 文件,然后從其他包開始。 所以,我的推斷是它應該是gunicorn問題。
我創建了一個虛擬環境並在那里安裝了 gunicorn 並使用了 gunicorn 而不是 gunicorn3,它起作用了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.