赞
踩
直接上代码
安装依赖
- 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 libffi-devel
-
下载安装包并解压,安装的是3.7.2
- wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
- tar -zxvf Python-3.7.2.tgz
安装
- cd Python-3.7.2
- ./configure prefix=/usr/local/python3
- make && make install
升级pip3
pip3 install --upgrade pip
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。