Python的包管理工具Pip (zz )

时间:2014-05-31 03:06:10   收藏:0   阅读:257

Python的包管理工具Pip

 

接触了Ruby,发现它有个包管理工具RubyGem很好用,并且有很完备的文档系统http://rdoc.info

发现Python下也有同样的工具,包括easy_install和Pip。不过,我没有细看easy_install的方法,这就简单的介绍一下Pip的安装与使用:

准备:

$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py

安装:

$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ python get-pip.py

使用方法:

$ pip install SomePackage
$ pip search "query"

$ pip install --upgrade SomePackage

$ pip install --upgrade SomePackage==version

 

补充:

包安装后的py文件路径:/usr/local/lib/python2.7/dist-packages

Python的包管理工具Pip (zz ),布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!