centos:
# yum groupinstall 'Development Tools'
# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel
# wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tar.xz
# tar Jxvf Python-3.5.0.tar.xz
# cd Python-3.5.0
# ./configure --prefix=/usr/local/python3
# make && make install
# ln -s /usr/local/python3/bin/python3.5 /usr/local/bin/python3
安装成功!!!
如果提示:Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS
这是原因没有安装或升级oenssl:
# yum install openssl-devel
安装 pip
# yum -y install epel-release
# yum install python-pip
升级pip到最高版本
# pip install --upgrade pip
网友评论