通过查看文件“utils.py”,我发现关于 smart_open 的声明是 from smart_open import open 因此,我尝试改用 utils.open() 这正好解决了我的问题^-^