想在windows环境下用gensim试试word2vec,搞了一个多小时才安装好,有点蛋疼,需要顺序安装如下模块:
下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/
- six-1.11.0-py2.py3-none-any.whl
- docutils-0.14-py3-none-any.whl
- jmespath-0.9.3-py2.py3-none-any.whl
- botocore-1.8.17-py2.py3-none-any.whl
- s3transfer-0.1.12-py2.py3-none-any.whl
- boto3-1.5.3-py2.py3-none-any.whl
- requests-2.18.4-py2.py3-none-any.whl
- bz2file-0.98-py2.py3-none-any.whl
- boto-2.48.0-py2.py3-none-any.whl
- smart_open-1.5.5-py2.py3-none-any.whl
- gensim-3.2.0-cp35-cp35m-win_amd64.whl
本人采用pip按装,方法可参考:http://blog.csdn.net/zuolixiangfisher/article/details/61923070
# 测试安装成功
>>> from gensim.models.word2vec import Word2Vec
>>>