1. 安装依赖

yum install gcc openssl-devel bzip2-devel

2.下载Python

cd  /usr/src
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
tar xzf Python-3.6.6.tgz

3. 安装Python

cd Python-3.6.6
./configure --enable-optimizations
make altinstall

4. 检查安装是否成功

python3.6 -V
pip3.6

每日一图:water drops (By Georg Scharf)

Centos 6 编译安装 Python 3.6

相关文章:

  • 2021-12-04
  • 2021-12-12
  • 2021-11-20
  • 2021-05-30
  • 2021-04-14
  • 2022-02-07
  • 2021-12-08
  • 2021-09-14
猜你喜欢
  • 2021-12-27
  • 2021-09-01
  • 2021-09-21
  • 2021-08-23
  • 2021-12-26
  • 2022-02-09
  • 2021-12-04
相关资源
相似解决方案