CentOS版本怎么安装python的pip及mycli的安装

本文介绍了如何在Linux环境下安装Python的包管理器pip,并提供了pip的常用命令介绍,包括安装、卸载、搜索等操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz 
tar zvxf 1.5.5.tar.gz    #解压文件cd pip-1.5.5/
python setup.py build
python setup.py install

[root@localhost mycli]# 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 /root/.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.

pip install mycli
wget http://peak.telecommunity.com/dist/ez_setup.py
wget http://peak.telecommunity.com/dist/ez_setup.py
再安装
python ez_setup.py

或者,我们装的setuptools工具太老,我们升级一下:
sudo python ./ez_setup.py -U setuptools

转载于:https://my.oschina.net/qbdsoft/blog/486528

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值