Ubuntu16.04下安装python3.6.4详细步骤

记录一下:

 

Ubuntu16.04自带的python版本为python2.7和python3.5,现在想要安装python3.6.4,注意:系统自带的python版本别删除

步骤:

# 官网下载安装包
1. wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

# 解压 
2. tar -xvzf Python-3.6.4.tgz

# 安装
3. cd Python-3.6.4
4. ./configure --with-ssl

# 编译
5. sudo make
6. sudo make install

# 创建软连接,先查看python3.6.4的安装路径
7. which python3    # /usr/local/bin/python3
8. sudo  ln -s /usr/local/bin/python3 python

 

即可完成全局python3.6.4的安装~

转载于:https://www.cnblogs.com/aidenzdly/p/11351316.html

你可能感兴趣的:(Ubuntu16.04下安装python3.6.4详细步骤)