CentOS7 使用yum Python3

[user@kubernetes ~]$ yum install -y epel-release    # 安装epel源扩展
..........
..........
[user@kubernetes ~]$ yum install python36     # epel源已经更新到python3.6.8版本
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.cn99.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package python36.x86_64 0:3.6.8-1.el7 will be installed
--> Processing Dependency: python36-libs(x86-64) = 3.6.8-1.el7 for package: python36-3.6.8-1.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-3.6.8-1.el7.x86_64
..........
..........
[user@kubernetes ~]$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && python get-pip.py
# 安装Python2 和 Python3 的pip工具并更新到最新版本
..........
..........

pip官方安装参考:https://pip.pypa.io/en/latest/installing/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    小迈克阅读 3,071评论 1 3
  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 2,255评论 0 3
  • 前言 pip安装本身很简单官方推荐的安装方法就一条命令,但离线安装pip时就有点痛苦了,因为不知道缺少什么依赖包。...
    王奥OX阅读 2,682评论 3 3
  • 一年一度的灵芝国际马拉松(芝马)在大家的共同努力之下圆满成功。 在芝马的前一天,我们的大神要用一场百公里来为之加油...
    戏精跑者阅读 1,048评论 0 5
  • 思念牵上蔷薇 从一个年头蔓延到另一个年头 在风的照看里 独自盛开――格桑花 一瓣的一半的蓝色――忧伤 一瓣的一半的...
    董言阅读 690评论 9 5