我已经安装并尝试重新安装pandas包。我有以下错误:
from pandas.compat.chainmap import DeepChainMap
file: venvlibsite-packagespandascompatchainmap.py
from typing import ChainMap, MutableMapping, TypeVar, cast
ImportError: cannot import name 'ChainMap'
我已经安装了python 3.6,tensorflow gpu==1.13.1,pandas-1.0.3
更新python版本或将panda降级到0.25。Pandas 1.0.3需要python>=3.6.1。
检查此问题
我已经卸载了python3.6.1版本,安装了python2.7.3 pandas 1.0.3版本以及tensorflow==1.14版本。这解决了问题。