python3 安装

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 安装

windows环境下 安装python2和python3

 

  

posted @ 2017-08-10 22:43  golangav  阅读(560)  评论(1编辑  收藏  举报