centos install python3 pip3


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
// 下载py文件
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
//解压
tar -xzvf Python-3.6.0.tgz -C  /tmp

cd  /tmp/Python-3.6.0/
// 配置路径
./configure 
./configure --prefix=/usr/local --with-ssl
//编译&安装
make
make altinstall



wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
tar -zxvf pip-9.0.1.tar.gz 
cd pip-9.0.1 
python3 setup.py install

OJBK!

 

posted @ 2019-04-24 16:00  luofeel  阅读(223)  评论(0编辑  收藏  举报