解决由于python版本引起的
ImportError: cannot import name lru_cache
将from functools import lru_cache
替换为
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
即可解决
解决由于python版本引起的
ImportError: cannot import name lru_cache
将from functools import lru_cache
替换为
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
即可解决