【发布时间】:2015-04-16 15:54:07
【问题描述】:
我已经安装了 gunicorn,但是没有找到 gunicorn 命令:
# pip3.4 install gunicorn
Requirement already satisfied (use --upgrade to upgrade): gunicorn in /usr/local/python3.4/lib/python3.4/site-packages
# gunicorn
-bash: gunicorn: command not found
什么问题,系统无法识别gunicorn安装路径?
【问题讨论】:
-
我想你已经将它安装到系统和一个venv。使用
locate查找 gunicorn 二进制文件并确保该目录在您的 PATH 内。 -
我没有使用venv,gunicorn不在我的系统路径中,我在系统路径中创建了一个gunicorn并输入了一些代码,然后它工作了,但为什么它不自动包含在路径中?跨度>
-
我不是 100% 确定。您使用的是什么操作系统?
-
生产服务器centos 6.5 x64,这有点奇怪,我的开发环境是虚拟机,与我的生产服务器相同的操作系统
-
路径可能有问题。我会检查它