原因为没有安装typeguard包,只需: pip install typeguard 大多数遇到这种找不到包的问题:ModuleNotFoundError,都可以检查是否安装了该包:pip show 包名