Python中文
首页
教程
问答
标签
搜索
登录
注册
没有名为“gunicorn”的模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正试着用古尼康和nginx来供应烧瓶 这是我的systemd单元配置文件</p> <pre><code>[Unit] Description=Gunicorn instance to serve odooErp After=network.target [Service] User=tito Group=www-data WorkingDirectory=/home/tito/peg/odoo_api/peg_api Environment="PATH=/home/tito/peg/odoo_api/peg_api/env/bin" ExecStart=/home/tito/peg/odoo_api/peg_api/env/bin/gunicorn --workers 3 --bind unix:odooErp.sock -m 007 wsgi:app [Install] WantedBy=multi-user.target </code></pre> <p>当我启动服务时,尽管使用pip安装了gunicorn,我还是遇到了以下错误</p> <pre><code>[0;1;31m●[0m odooErp.service - Gunicorn instance to serve productionOdoo Loaded: loaded (/etc/systemd/system/odooErp.service; enabled; vendor preset: enabled) Active: [0;1;31mfailed[0m (Result: exit-code) since Tue 2020-08-18 05:33:23 UTC; 1min 0s ago Main PID: 18305 (code=exited, status=1/FAILURE) CPU: 43ms Aug 18 05:33:23 peg-test-01 systemd[1]: Started Gunicorn instance to serve odooErp. Aug 18 05:33:23 peg-test-01 gunicorn[18305]: Traceback (most recent call last): Aug 18 05:33:23 peg-test-01 gunicorn[18305]: File "/home/tito/peg/odoo_api/peg_api/env/bin/gunicorn", line 7, in <module> Aug 18 05:33:23 peg-test-01 gunicorn[18305]: from gunicorn.app.wsgiapp import run Aug 18 05:33:23 peg-test-01 gunicorn[18305]: ImportError: No module named 'gunicorn' Aug 18 05:33:23 peg-test-01 systemd[1]: [0;1;39modooErp.service: Main process exited, code=exited, status=1/FAILURE[0m Aug 18 05:33:23 peg-test-01 systemd[1]: [0;1;39modooErp.service: Unit entered failed state.[0m Aug 18 05:33:23 peg-test-01 systemd[1]: [0;1;39modooErp.service: Failed with result 'exit-code'.[0m </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>这可能是因为模块的路径不正确</p> <p>如果您在windows上,则可以在您的环境中按如下方式设置路径: 搜索此电脑>;房地产>;左角的高级系统设置>;右下角的环境变量>;在用户变量中,单击路径,然后单击新建并设置路径</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在python中从数据帧列中删除分类值?
8 回答
如何在python中从数据帧列表中删除引号
7 回答
如何在python中从数据帧创建列表
5 回答
如何在Python中从数据帧创建嵌套的JSON
9 回答
如何在Python中从数据帧显示wordcloud
3 回答
如何在Python中从数据帧的时间戳中删除字符
3 回答
如何在Python中从数据帧绘制简单绘图?
9 回答
如何在python中从数据帧行提取具有特定长度的范围?
8 回答
如何在python中从数据帧设置dict中的值
3 回答
如何在Python中从数据库中获得一个结果
1 回答
如何在python中从数据框中绘制分类条形图
4 回答
如何在Python中从数据框中选择特定细节?
8 回答
如何在python中从数据集中删除unicode
3 回答
如何在python中从数据集中删除某些数值?
1 回答
如何在python中从数据集中选择行
3 回答
如何在Python中从数组中删除元素
5 回答
如何在python中从数组中删除单个倒逗号?
4 回答
如何在python中从数组中删除对象?
5 回答
如何在python中从数组中删除引号
4 回答
如何在python中从数组中删除所有最小值
9 回答