准备:
$ 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