Home  >  Article  >  php教程  >  Python pip 安装

Python pip 安装

WBOY
WBOYOriginal
2016-06-06 20:00:341603browse

发现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


=================== 请关注 ==========================

                                       Python pip 安装

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Python 操作 jsonNext article:HTTP状态码(HTTP Status Code)