Home > php教程 > php手册 > Python pip 安装

Python pip 安装

WBOY
Release: 2016-06-06 20:00:34
Original
1747 people have browsed it

发现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
Copy after login

安装:

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

使用方法:

$ pip install SomePackage
Copy after login
$ pip search "query"
Copy after login
$ pip install--upgradeSomePackage

$ pip install --upgrade SomePackage==version


补充:

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


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

                                       Python pip 安装

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template