1 yum -y install "Development tools"
2 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel t k-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
3 wget http://npm.taobao.org/mirrors/python/3.8.0/Python-3.8.0rc1.tar.xz
4 mkdir /usr/local/python3
5 tar -xvJf Python-3.8.0rc1.tar.xz
6 cd Python-3.8.0rc1
7 ./configure --prefix=/usr/local/python3
8 make && make install
9 ln -s /usr/local/python3/bin/python3 /usr/bin/python3
10 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

posted on 2019-10-05 22:33  专注于区块链开发  阅读(461)  评论(0编辑  收藏  举报