Ubuntu如何设置python默认版本为python3?
答:可以使用alternatives机制更改,在终端输入指令如下:
指令1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
指令2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
Ubuntu设置默认python版本为python3

相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2021-04-13
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-10-02
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-02-16
  • 2021-04-19
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案