当前位置:   article > 正文

CentOS 7.9 源码安装 Python 3_centos7.9 yum python3

centos7.9 yum python3
  1. 下载:
    https://www.python.org/ftp/python/
    如:
    wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
    
    • 1
  2. 解压:
    tar -zxvf Python-3.8.5.tgz
    
    • 1
  3. 安装依赖:
    yum -y install gcc 
    yum -y install gcc-c++
    yum -y install zlib
    yum -y install zlib-devel
    
    • 1
    • 2
    • 3
    • 4
  4. 配置:
    ./configure
    
    • 1
  5. 编译:
    make
    
    • 1
  6. 测试:
    make test
    
    • 1
  7. 安装:
    make install
    
    • 1
  8. 测试安装版本:
    [root@centos79 ~]# python3
    Python 3.8.5 (default, Apr 12 2021, 22:19:33) 
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    
    • 1
    • 2
    • 3
    • 4
    • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/704580
推荐阅读
相关标签
  

闽ICP备14008679号