__init__.py中:
__init__.py
from gensim import utils, matutils, interfaces, corpora, models, similarities
utils.py在同一级目录,为什么还提示‘ImportError: cannot import name utils’
学习是最好的投资!
I don’t know the specific details, so I’ll try the content in __init__.py
with
from . import utils, matutils, interfaces, corpora, models, similarities
I don’t know the specific details, so I’ll try the content in
Replace__init__.py
with