linux下安装python3

 

下载,解压,编译,安装:

wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz

tar -xvf Python-3.6.0.tgz

./configure --prefix=/usr/local/python3

make &&make install

链接

ln -s /usr/local/python3/bin/python3 /usr/bin/python3

配置pip3

PATH=$PATH:$HOME/bin:/usr/local/python3/bin

 

posted @ 2018-10-26 17:31  千米屠苏  阅读(832)  评论(0编辑  收藏  举报