lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
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.
>>> 
 
 
 
 
posted on 2020-05-17 21:56  lnlidawei  阅读(1977)  评论(0编辑  收藏  举报