example 的docker-compose启动报错:cannot import name 'url_quote' from 'werkzeug' (/usr/lib/pyy)
emmnoi opened this issue · 0 comments
emmnoi commented
Creating examples_sso_1 ... done
Creating examples_site1_1 ... done
Creating examples_site2_1 ... done
Attaching to examples_sso_1, examples_site2_1, examples_site1_1
site2_1 | Traceback (most recent call last):
site2_1 | File "site2/client.py", line 3, in
site2_1 | from flask_oauthlib.client import OAuth
site2_1 | File "/usr/lib/python3.8/site-packages/flask_oauthlib/client.py", line
site2_1 | from werkzeug import url_quote, url_decode, url_encode
site2_1 | ImportError: cannot import name 'url_quote' from 'werkzeug' (/usr/lib/pyy)
大概是容器内依赖的 werkzeug过高,requirements.txt 中加一行就行了,werkzeug==0.16.0