win11 64位OS
python版本:3.10.4
gcc已安装
C:\Users\chenx>where gcc.exe
C:\mingw64\bin\gcc.exe
visual C++ 2022 Build Tools 已安装 (版本14.0+)
gensim已安装
glove-python显示已安装
C:\Users\chenx>pip install glove-python
Requirement already satisfied: glove-python in d:\code_related_software\anaconda\lib\site-packages (0.1.0)
Requirement already satisfied: numpy in d:\code_related_software\anaconda\lib\site-packages (from glove-python) (1.23.5)
Requirement already satisfied: scipy in d:\code_related_software\anaconda\lib\site-packages (from glove-python) (1.10.0)
运行
from glove import Glove
报错信息
>>> from glove import Glove
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\code_related_software\Anaconda\lib\site-packages\glove\__init__.py", line 1, in <module>
from .corpus import Corpus
File "D:\code_related_software\Anaconda\lib\site-packages\glove\corpus.py", line 10, in <module>
from .corpus_cython import construct_cooccurrence_matrix
ModuleNotFoundError: No module named 'glove.corpus_cython'
尝试了很多方法最后都不行