发现python下有工具,包括easy_install和pip。不过,我没有细看easy_install的方法,这就简单的介绍一下pip的安装与使用: 准备: $ curl -o http://python-distribute.org/distribute_setup.py$ python distribute_setup.py 安装: $ curl -o https://raw.g
发现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--upgradesomepackage$ pip install --upgrade somepackage==version
补充:
包安装后的py文件路径:/usr/local/lib/python2.7/dist-packages
=================== 请关注 ==========================