python库的安装

来源:互联网 发布:软件外包合同范本样本 编辑:程序博客网 时间:2024/06/10 18:01

查看Anaconda为我们安装的python相关的包

conda list


安装库

(1)安装mingw

conda install mingw libpython

(2)安装theano

pip install theano

pip install scipy




更新库

(1)pip的方法

pip install --upgrade 库名

pip install --upgrade pip  (先更新pip)

pip install --upgrade scipy

(2)conda方法

 conda update scipy

 conda update theano       

运行CNN时,一定要更新theano到0.9.0版本。但必须先更新scipy (好像还有numpy和six)后更新theano。


卸载库

pip uninstall pandas


安装gensim库

from gensim.models import word2vec

pip install gensim


 

pip install 安装指定版本的包


要用 pip 安装指定版本的 Python 包,只需通过 == 操作符 指定

pip install robotframework==2.8.7

安装下载好的库

cmd进入目标文件夹          D:       /cd python库
pip install pandas-0.18.1-cp35-cp35m-win_amd64.whl

0 0
原创粉丝点击