安装

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

配置只输入python3时就默认使用3.6版本

也可使用上面链接里说明的方法

1、update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.1

2、update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.2

3、update-alternatives --config python3

4、python3 -V

设置pip:

1、apt-get install python3-pip    # Python3

2、apt-get install python-pip      # Python2

Ubuntu16.04安装Python3.6 和pip(python3 各版本切换)

 

相关文章:

  • 2021-07-24
  • 2021-12-24
  • 2021-12-04
  • 2021-12-06
  • 2022-12-23
  • 2021-04-11
  • 2021-12-08
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-09-05
  • 2022-01-22
  • 2022-01-25
相关资源
相似解决方案