在 OS X Yosemite系统上安装gensim时,遇到如下问题:
File "/Users/briantom/Downloads/gensim-0.12.1/gensim/summarization/__init__.py", line 4, in <module> from .keywords import keywords File "/Users/briantom/Downloads/gensim-0.12.1/gensim/summarization/keywords.py", line 12, in <module> from six.moves.queue import Queue as _Queue ImportError: No module named queue
查资料认为跟系统有关(猜测是系统安装gensim时产生的模块结构变了)。解决方案:
https://github.com/RaRe-Technologies/gensim/pull/408/commits/21e9c1e8d9b272b89edcabe17fb6c6e1d53ae2a9
修改文件后,pass。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/7454.html