美文网首页
1.1、安装:Python3.6.8

1.1、安装:Python3.6.8

作者: EricJonse | 来源:发表于2019-07-15 09:18 被阅读0次

    源码安装 Python3.6.8

    安装基础依赖

    yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
    

    预编译配置项

    ./configure --prefix=/usr/local/Python3.6/ --enable-optimizations --enable-loadable-sqlite-extensions --with-ssl --enable-shared
    

    --prefix :指定安装目录
    --enable-optimizations :开启优化
    --enable-loadable-sqlite-extensions :开启sqlite库依赖
    --with-ssl :开启ssl模块

    编译

    make -j `grep processor /proc/cpuinfo  | wc -l`
    

    相关文章

      网友评论

          本文标题:1.1、安装:Python3.6.8

          本文链接:https://www.haomeiwen.com/subject/aaolxctx.html