Linux下安裝Gensim

依賴軟件包:numpycentos

直接使用pip安裝:spa

[root@mycentos ~]#pip install gensim

 

安裝gensim的時候會遇到下面的一系列錯誤:code

Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurate

意思是:blog

安裝gensim的時候須要numpy更高的版本,而自帶的numpy版本較低,版本有問題可是numpy已經安裝過了,沒法進行直接卸載。
解決辦法:強行安裝更新更高的版本。ip

[root@mycentos ~]#pip install numpy --ignore-installed numpy
[root@mycentos ~]#pip install scipy --ignore-installed scipy

 其它軟件同理。ci

相關文章
相關標籤/搜索