Ubuntu 14.04 安转和使用 pip

安装

第一步、更新:

sudo apt-get update
sudo apt-get upgrade

第二步、安装:

apt-get install python-pip

如果是 Python3 请使用:

apt-get install python3-pip

第三步、检查是否安转成功:

pip3 -V

使用

pip 的命令行参数及说明:

Usage:   
  pip  [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  zip                         DEPRECATED. Zip individual packages.
  unzip                       DEPRECATED. Unzip individual packages.
  bundle                      DEPRECATED. Create pybundles.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  -v, --verbose               Give more output. Option is additive, and can be
                              used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output.
  --log-file            Path to a verbose non-appending log, that only
                              logs failures. This log is active by default at
                              /home/toby/.pip/pip.log.
  --log                 Path to a verbose appending log. This log is
                              inactive by default.
  --proxy              Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --timeout              Set the socket timeout (default 15 seconds).
  --exists-action     Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup.
  --cert                Path to alternate CA bundle.

你可能感兴趣的:(Ubuntu 14.04 安转和使用 pip)