安装itsdangerous 之后无法引入 TimedJSONWebSignatureSerializer
安装了 itsdangerous 之后发现d引入TimedJSONWebSignatureSerializer 时报错了
Traceback (most recent call last):
File "E:/itsdangerous/ttt.py", line 2, in <module>
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
ImportError: cannot import name 'TimedJSONWebSignatureSerializer' from 'itsdangerous' (C:\Program Files\Python37\lib\site-packages\itsdangerous\__init__.py
报上面这个错误,这个时候需要将你的itsdangerous版本将至 2.0.0 即可
pip install itsdangerous==2.0.0
完事