189 8069 5689

centos7安装python3

      yum install openssl-devel -y
    wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz
    tar zxvf Python-3.6.8.tgz
    ./configure --prefix=/usr/local/python3  --with-ssl --enable-optimizations
    make && make install
    ln -s /usr/local/python3/bin/python3 /usr/bin/python3
    ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

文章名称:centos7安装python3
网页地址:http://cdxtjz.cn/article/jdpsgd.html

其他资讯