[xxxxxxxx jenkins]$ sudo gunicorn -c gunicorn.py --reload xxxxx:app
Traceback (most recent call last):
File “/bin/gunicorn”, line 7, in
from gunicorn.app.wsgiapp import run
File “/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py”, line 9, in
from gunicorn.app.base import Application
File “/usr/lib/python2.7/site-packages/gunicorn/app/base.py”, line 38
print("\nError: %s" % str(e), file=sys.stderr)
^
SyntaxError: invalid syntax
解决办法:
pip freeze 查看gunicorn 升级到20.0.0最新版本,不支持python2的环境,需要降级到最后一个支持版本 💔 19.9.0
sudo pip install gunicorn==19.9.0
即可解决这个问题 ε(┬┬﹏┬┬)3
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- efsc.cn 版权所有 赣ICP备2024042792号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务