#执行wget命令提示 -bash: wget: command not found
yum -y install wget
#安装pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
#查看pip版本
pip -V
如果出现错误
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
#因为这个错误导致 pip找不到
python -m ensurepip
python -m pip install --upgrade pip
pip -V
安装python3的时候会自动安装pip3
python3安装方法:https://blog.csdn.net/qq_21153619/article/details/84635002
手动安装:
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-9.0.1.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb
tar -zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python3 setup.py build
python3 setup.py install