CentOS8 Install Python2


CentOS8_Install_Python2
 
 
 
 
 
1、查詢python2:
 
[root@centos8 ~]# whereis python2
 
 
 
 
 
2、安裝python2:
 
[root@centos8 ~]# dnf install python2
 
 
 
 
 
3、將python2設置為默認python(houdini18.0.416需要python2.7):
 
[root@centos8 ~]#  whereis python2
[root@centos8 ~]#  ln  -s  /usr/bin/python2  /bin/python
 
 
 
 
 
4、檢查結果:
 
[root@centos8 ~]# python
Python 2.7.16 (default, Nov 17 2019, 00:07:27) 
[GCC 8.3.1 20190507 (Red Hat 8.3.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
 
 
 
 


免責聲明!

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



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