我需要在mac优胜美地上使用gensim对文本文件做一些实验。gensim无法导入,因为ImportError:没有模块命名队列?
我已经安装了numpy
和scipy
但是当我想导入gensim
。
我面对这个错误:
from six.moves.queue import Queue as _Queue
ImportError: No module named queue
我升级numpy
和scipy
到最新的版本,Python是2.7.10。
我读到,可以通过将gensim
代码黑入from Queue import Queue as _Queue
来解决问题,但我不知道该怎么办!
有没有其他办法?