欢迎Follow我的GitHub:https://github.com/SpikeKing
本文地址:http://blog.csdn.net/caroline_wendy/article/details/77089569
Gensim is a FREE Python library
- Scalable statistical semantics
- Analyze plain-text documents for semantic structure
- Retrieve semantically similar documents
Gensim是一个免费的Python库
- 可扩展的、可统计的语义信息
- 分析纯文本文档获取语义结构
- 检索语义相似的文档
默认安装:pip install gensim
错误信息提示:setuptools版本过低,需要重新安装setuptools
。
The required version of setuptools (>=1.3.2) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U setuptools'.
服务器无法使用easy_install
,使用pip
更新安装setuptools
,但是版本仍不满足,即0.9.8。
pip install setuptools --upgrade
原因是,在我司的源中setuptools
版本较低,更换阿里云的源,重新安装。
pip install setuptools --upgrade -i http://mirrors.aliyun.com/pypi/simple
再次安装gensim
,即可。
pip install gensim