CentOS7 安装Python开发环境

 时间:2024-10-26 13:38:46

1、使用xshell登录到我们的CentOS7系统2、添加CentOS SCLo存储库[root@linuprobe ~]# yum -y install centos-release-scl-rh centos-release-scl

2、使用yum安装python3.3[root@linuprobe ~]# scl enable python33 bash #加载环境变量[root@linuprobe ~]# python -VPython 3.3.2[root@linuprobe ~]# which python/opt/rh/python33/root/usr/bin/python[root@linuprobe ~]# vi /etc/profile.d/python33.sh#!/bin/bashsource /opt/rh/python33/enableexport X_SCLS="`scl enable python33 'echo $X_SCLS'`"

3、使用yum安装python[root@linuprobe ~]# scl enable python34 bash #加载环境变量[root@linuprobe ~]# python -VPython 3.4.2[root@linuprobe ~]# which python/opt/rh/python34 /root/usr/bin/python[root@linuprobe ~]# vi /etc/profile.d/python34 .sh#!/bin/bashsource /opt/rh/python34 /enableexport X_SCLS="`scl enable python34 'echo $X_SCLS'`"

4、使用yum安装Python3.5[root@linuprobe ~]# scl enable python35 bash #加载环境变量[root@linuprobe ~]# python -VPython 3.5.1[root@linuprobe ~]# which python/opt/rh/python35 /root/usr/bin/python[root@linuprobe ~]# vi /etc/profile.d/python35 .sh#!/bin/bashsource /opt/rh/python35 /enableexport X_SCLS="`scl enable python35 'echo $X_SCLS'`"

  • Ubuntu桌面的11件好工具
  • SQL Server2016数据库如何新建表?
  • Deepin Linux 怎么安装VMware Tools
  • 使用SecureCRT链接linux、ubuntu系统
  • echarts如何调整边距
  • 热门搜索
    生物手抄报内容 消防的手抄报 清明节英语手抄报内容 爱护环境手抄报图片 爱的教育手抄报 小学四年级数学手抄报 语言的魅力手抄报资料 关于手抄报的图画 安全手抄报的资料 三月文明礼貌月手抄报