python3 一键安装

2018/10 28 11:10

make安装

yum -y install gcc automake autoconf libtool make

安装g++:

yum install gcc gcc-c++

yum -y install gcc automake autoconf libtool make
yum  -y install gcc gcc-c++ autoconf automake
yum groupinstall “Development tools”
yum -y install  zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
echo 'wget http://91o.cc/Python-3.6.7.tgz'
wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tgz
tar zxvf Python-3.6.7.tgz
cd Python-3.6.7
./configure
make
make install
cd ..
echo "rm -rf Python-3.6.7*"
pip3 install --upgrade pip

--转载请注明: http://91o.cc/python3-%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85/

发表回复

(必填)