问题描述 前提:已经安装了earcut模块,仍报此错误。已确认earcut.py 中有earcut函数 原因分析: 有可能是路径问题 解决方案: 将earcut.py 放到 当前执行py 同级目录再执行