centos7AnolisOS安装pip

admin2周前其他173

正常来说应该这样:


安装epel :yum install -y epel-release

启用epel :yum install -y yum-utils && yum-config-manager --enable epel

安装pip :yum install -y python-pip

更新pip:pip install --upgrade pip


但是在安装pip的时候报错


Error: Unable to find a match: python-pip


执行:

yum --enablerepo=epel install python-pip


还是不行,继续:

1.pip的安装这里参考官网-Installation,即,输入curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py后回车,如下:


[root@localhost /]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

2.然后,输入python get-pip.py之后回车,如下:

ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.

重新输入上步提示的路径,并继续执行

[root@cdw-lj /]# python get-pip.py   #会看到Successfully.....等安装成功的字样



标签: Pythonpip
返回列表

上一篇:APACHE安全配置

没有最新的文章了...

相关文章

Mysql修复损坏表并写脚本自动修复

 mysql 进程在一个写入中被杀死、计算机意外关闭、硬件错误都能造成mysql表损坏 。mysql 修复表的各种方法1、mysqlcheck 进行表修复使用mysqlcheck 命令对表进...