在centos中安装python

依次输入命令:

# yum -y groupinstall development
# yum -y install zlib-devel

# wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
# tar xJf Python-3.6.0.tar.xz
# cd Python-3.6.0
# ./configure
# make
# make install

# 此时输入python3 -V   检查是否安装成功

猜你喜欢

转载自blog.csdn.net/m943917709/article/details/88356157