美文网首页Python 成长笔记
Ubuntu 14.04 安转和使用 pip

Ubuntu 14.04 安转和使用 pip

作者: 赵者也 | 来源:发表于2018-01-29 09:52 被阅读147次

安装

第一步、更新:

sudo apt-get update
sudo apt-get upgrade

第二步、安装:

apt-get install python-pip

如果是 Python3 请使用:

apt-get install python3-pip

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

pip3 -V

使用

pip 的命令行参数及说明:

Usage:   
  pip <command> [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>           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>                Path to a verbose appending log. This log is
                              inactive by default.
  --proxy <proxy>             Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup.
  --cert <path>               Path to alternate CA bundle.

相关文章

网友评论

    本文标题:Ubuntu 14.04 安转和使用 pip

    本文链接:https://www.haomeiwen.com/subject/yxztzxtx.html