GloVe 正确安装方法
官方Glove网址:https://nlp.stanford.edu/projects/glove/
替代版本:https://github.com/maciejkula/glove-python
使用官方版在make时一直出错,查其原因,必须安装4.7.3版本的GCC。但是这个版本的mingw-w64没找到mingw32-make.exe。发现有替代方案,但是同样存在安装不成功的问题。直到找到这个帖子:https://github.com/maciejkula/glove-python/wiki/Installation-on-Windows,问题才解决大半。
GloVe安装方法如下:
一. 安装GCC
1.1下载4.8.1版本的GCC,以下链接中,下载任意安装包。
https://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/64-bit/threads-posix/seh/
1.2 解压后放在C盘,如图所示。

1.3在系统变量中添加path,如图所示。

1.4 在cmd中输入where gcc.exe,确认安装成功。

二. 安装libpython安装包
2.1 确认自己已经关闭科学上网的工具,否则会出现代理问题。我在这地方浪费了人生中的三个小时。
2.2 输入以下代码安装libpython。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda install libpython
2.3 安装glove-python
pip install glove-python