[root@etl ~]# rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps
软件包准备中...
python3-libs-3.6.8-18.el7.x86_64
python3-pip-9.0.3-8.el7.noarch
python3-setuptools-39.2.0-10.el7.noarch
python3-3.6.8-18.el7.x86_64
[root@etl ~]# whereis python3 |xargs rm -frv
已删除目录:"/usr/lib/python3.6/site-packages/__pycache__"
已删除目录:"/usr/lib/python3.6/site-packages"
已删除目录:"/usr/lib/python3.6"
[root@etl ~]# whereis python
python: /usr/bin/python2.7 /usr/bin/python /usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /usr/share/man/man1/python.1.gz
Centos卸载已有的Python3
最新推荐文章于 2022-08-05 18:51:02 发布