ModuleNotFoundError: No module named 'pip'
001、问题
[root@localhost Python-3.7.9]# python --version Python 3.7.9 [root@localhost Python-3.7.9]# pip Traceback (most recent call last): File "/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip'
002、解决方法
python -m ensurepip
python -m pip install --upgrade pip
003、测试安装效果
pip --version