__init__.py
中:
from gensim import utils, matutils, interfaces, corpora, models, similarities
utils.py在同一级目录,为什么还提示‘ImportError: cannot import name utils’
迷茫2017-04-17 15:04:34
不清楚具體細節,試試把__init__.py
裡面的內容
from gensim import utils, matutils, interfaces, corpora, models, similarities
替換成
from . import utils, matutils, interfaces, corpora, models, similarities