Centos7 安装python3
#安装sqlite-devel yum -y install sqlite-devel #安装依赖 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel #下载安装 wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz mkdir -p /usr/local/python3 tar -zxvf Python-3.6.1.tgz cd Python-3.6.1 ./configure --prefix=/usr/local/python3 make make install #软连接 ln -s /usr/local/python3/bin/python3 /usr/bin/python3 #环境 vim ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/python3/bin export PATH source ~/.bash_profile
Windows 安装