安装 Python-3.6.8.tgz

      tar zxvf Python-3.6.8.tgz

      mkdir /usr/local/python36

      ./configure --prefix=/usr/local/python36

      make

      make install

添加环境变量

      在 /etc/profile 文件中追加 export PATH=/usr/local/python36/bin:$PATH

      source /etc/profile

相关文章: