我使用的是Windows 7.我已经安装了python 2.7和gensim(pip install gensim)。当我尝试在python控制台中导入gensim时,出现以下错误:
C:\HOMEWARE\Anaconda\lib\site-packages\gensim\utils.py:860: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\HOMEWARE\Anaconda\lib\site-packages\gensim\__init__.py", line 6, in <module>
from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization
File "C:\HOMEWARE\Anaconda\lib\site-packages\gensim\matutils.py", line 21, in <module>
from scipy.stats import entropy
File "C:\HOMEWARE\Anaconda\lib\site-packages\scipy\stats\__init__.py", line 348, in <module>
from .stats import *
File "C:\HOMEWARE\Anaconda\lib\site-packages\scipy\stats\stats.py", line 175, in <module>
import scipy.special as special
File "C:\HOMEWARE\Anaconda\lib\site-packages\scipy\special\__init__.py", line 640, in <module>
from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.
我在stackoverflow here和here上看到了类似的错误,但它似乎并不适合我。
感谢您的帮助!