安装:
进入http://www.lfd.uci.edu/~gohlke/pythonlibs/
下载对应的版本:如python3.6,64位Windows操作系统,应该下载numpy-1.13.1+mkl-cp36-cp36m-win_amd64.whl,scipy-0.19.1-cp36-cp36m-win_amd64.whl和gensim-2.3.0-cp36-cp36m-win_amd64.whl包。
安装下载包的顺序分别安装包,注意顸序丌能改变。安装命令:
pip install gensim
#没设置清华源的话,.直接指定清华源下载更快
#pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 模块名
Pip install ***.whl文件
遇到问题:
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
spacy 2.0.16 has requirement regex==2018.01.10, but you’ll have regex 2019.6.5 which is incompatible.
jupyterlab-server 1.0.0 has requirement jsonschema>=3.0.1, but you’ll have jsonschema 2.6.0 which is incompatible.
解决: 下载/安装 twisted 18.7.0 requires PyHamcrest
安装 Twisted-19.10.0-cp38-cp38-win_amd64的时候遇到问题 :
ERROR: Twisted-19.10.0-cp38