安装

  1. 使用 apt 安装:

$ sudo apt-get install python-pip

 

  截止本文落笔,apt 安装 pip 版本为 1.0,但 pip 最新发行版本为 1.5.6

$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)

 

  pip 1.0 特性:

$ pip -h
Usage: pip COMMAND [OPTIONS]

Options:
  --version             show program's version number and exit
  -h, --help            Show help
  -E DIR, --environment=DIR
                        virtualenv environment to run pip in (either give the
                        interpreter or the environment base directory)
  -s, --enable-site-packages
                        Include site-packages in virtualenv if one is to be
                        created. Ignored if --environment is not used or the
                        virtualenv already exists.
  -v, --verbose         Give more output
  -q, --quiet           Give less output
  --log=FILENAME        Log file where a complete (maximum verbosity) record
                        will be kept
  --proxy=PROXY         Specify a proxy in the form
                        user:passwd@proxy.server:port. Note that the
                        user:password@ is optional and required only if you
                        are behind an authenticated proxy.  If you provide
                        user@proxy.server:port then you will be prompted for a
                        password.
  --timeout=SECONDS, --default-timeout=SECONDS
                        Set the socket timeout (default 15 seconds)

Commands available:
  bundle: Create pybundles (archives containing multiple packages)
  freeze: Output all currently installed packages (exact versions) to stdout
  help: Show available commands
  install: Install packages
  search: Search PyPI
  uninstall: Uninstall packages
  unzip: Unzip individual packages
  zip: Zip individual packages
View Code

相关文章:

  • 2021-09-08
  • 2021-07-25
  • 2021-07-09
  • 2018-06-03
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2021-06-10
  • 2022-01-18
  • 2021-05-26
  • 2021-11-19
  • 2021-12-29
  • 2022-01-07
相关资源
相似解决方案