python3.6.3安装步骤,适用linux centos系统

时间:2024-06-24 11:32:56

step1:

yum -y install gcc
yum install zlib zlib-devel

step2: cd /usr/bin/ mv python python.bak

step3:下载python3.6.3,解压并进入目录执行执行 ./configure -prefix=/usr/local/python/python3 ; make ; makeinstall

step4:执行 ln -s /usr/local/python/python3/bin/python3 /usr/bin/python
ln -s /usr/local/python/python3/bin/pip3 /usr/bin/pip3