CentOS 卸載 python


卸載 python 2.7

rpm -qa|grep python2|xargs rpm -ev --allmatches --nodeps

whereis python2 |xargs rm -frv

-------------------

卸載 python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸載pyhton3 whereis python3 |xargs rm -frv 刪除所有殘余文件 成功卸載! whereis python 查看現有安裝的python 

 -------------------

The system python on CentOS 7 must be the 2.7 version that we ship. Must. 
You cannot replace the system python with a different one.
If you need a newer python then multiple places ship a python3 stack that installs in parallel to the system 2.7 that we ship.
No-one yet ships 3.8 as it's too new. There are python 3.6 packages in the CentOS 7.7 base and updates repos.
Use those.
They are supported and are the same versions that are in CentOS 8 so you know things written on one should work on the other.

 -------------------

Centos 7.8

Python 3 is now available. Installing the python3 package gives you the Python 3.6 interpreter。Python 3 可用,安裝python3將會提供Python 3.6解釋器。

---------------------------------

Centos 8

Python 3.6 是默認的 Python 環境,有限支持 Python 2.7

---------------------------------




免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM