溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

python開發(fā)之a(chǎn)naconda以及win7下安裝gensim的方法

發(fā)布時間:2020-10-01 11:30:40 來源:腳本之家 閱讀:208 作者:竹聿Simon 欄目:開發(fā)技術

一、推薦安裝Anaconda

官方介紹:Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes more than 400 of the most popular Python packages for science, math, engineering, and data analysis. 

下載頁面:https://www.continuum.io/downloads

Python的有些模塊在單獨安裝時可能非常麻煩,Anaconda中則已經(jīng)集成好了許多常見的模塊,用起來非常方便。

安裝Anaconda之前不需要預先安裝python,它其中已經(jīng)自帶Python、IPython、集成開發(fā)環(huán)境Spyder、一些包等等。 

anaconda自帶的conda命令:

# 查看安裝的包
conda list
# 安裝模塊
conda install scipy
# 更新模塊
conda update scipy
# 更新所有模塊
conda update --all
# 升級Anaconda
conda update conda
conda update anaconda

二、gensim安裝

因為需要學習使用word2vec,所以要安裝gensim模塊。

用傳統(tǒng)python安裝gensim庫時,由于依賴的庫比較多,試過很多教程之后還是失敗。

利用上面安裝好Anaconda之后,直接pip install gensim就成功了。

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持億速云。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。

AI