在Centos7中安装Python 3.6.3(不删除系统自带的2.7.5)

这篇博客详细记录了如何在Centos7环境中安装Python 3.6.3,同时保留系统默认的Python 2.7.5。通过使用yum utilities安装IUS repository,然后安装python36u及其依赖,最后安装pip3.6并展示其基本用法。
摘要由CSDN通过智能技术生成

[vagrant@localhost ~]$ sudo yum install yum-utils

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirrors.aliyun.com

 * epel: mirrors.ustc.edu.cn

 * extras: mirrors.shuosc.org

 * updates: mirrors.shuosc.org

Package yum-utils-1.1.31-42.el7.noarch already installed and latest version

Nothing to do


[vagrant@localhost ~]$ sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

Loaded plugins: fastestmirror

ius-release.rpm                                                                                                                                             | 8.1 kB  00:00:00     

Examining /var/tmp/yum-root-bgDYJp/ius-release.rpm: ius-release-1.0-15.ius.centos7.noarch

Marking /var/tmp/yum-root-bgDYJp/ius-release.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package ius-release.noarch 0:1.0-15.ius.centos7 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


===================================================================================================================================================================================

 Package                                   Arch                                 Version                                           Repository                                  Size

===================================================================================================================================================================================

Installing:

 ius-release                               noarch                               1.0-15.ius.centos7                                /ius-release                               8.5 k


Transaction Summary

===================================================================================================================================================================================

Install  1 Package


Total size: 8.5 k

Installed size: 8.5 k

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值