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-09-14
  • 2021-07-05
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-12-26
猜你喜欢
  • 2021-12-27
  • 2022-01-28
  • 2021-07-27
  • 2021-10-14
  • 2021-09-01
  • 2021-09-21
相关资源
相似解决方案