码迷,mamicode.com
首页 > 编程语言 > 详细

Python的包管理工具Pip

时间:2014-08-28 13:15:09      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:http   使用   io   ar   文件   art   div   sp   on   

接触了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

标签:http   使用   io   ar   文件   art   div   sp   on   

原文地址:http://www.cnblogs.com/hrhguanli/p/3941332.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!