Jef*_*ant 3 python python-3.x gunicorn
我跑了这个:
pip3 install gunicorn
Run Code Online (Sandbox Code Playgroud)
然后我尝试运行 gunicorn,但我被告知没有这样的命令。如果我这样做:
ls -al /usr/local/lib/python3.7/site-packages/gunicorn/
Run Code Online (Sandbox Code Playgroud)
我看到这个:
.
..
app
arbiter.py
argparse_compat.py
_compat.py
config.py
debug.py
errors.py
glogging.py
http
__init__.py
instrument
pidfile.py
__pycache__
reloader.py
selectors.py
six.py
sock.py
systemd.py
util.py
workers
Run Code Online (Sandbox Code Playgroud)
我想我可以创建一个符号链接并将其存储在这里:
/usr/local/bin/
Run Code Online (Sandbox Code Playgroud)
但是我会链接什么?好像没有实际的 gunicorn 命令?
如果我看这里:
https://github.com/benoitc/gunicorn
没有名为“gunicorn”的文件。同样,如果我看这里:
https://github.com/benoitc/gunicorn/gunicorn
就我所见,没有名为“gunicorn”的文件。那么我们应该如何从命令行调用它呢?
如果您有 apt(或 apt-get):
$ sudo apt install gunicorn3
$ sudo ln -s /usr/bin/gunicorn3 /usr/bin/gunicorn
Run Code Online (Sandbox Code Playgroud)
您可能想先删除旧的 gunicorn 包:
$ sudo apt remove gunicorn
Run Code Online (Sandbox Code Playgroud)
检查gunicorn3的安装位置(以防万一):
$ whereis gunicorn3
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7733 次 |
| 最近记录: |