一种方法是别名:

$alias python='/usr/bin/python3'

$ python --version Python 3.4.3 # 版本已经改变

另一种方法是:链接

$ ln -s python /usr/bin/python3

$ python --version Python 3.4.3

 

相关文章:

  • 2021-06-16
  • 2021-06-14
  • 2021-10-27
  • 2021-12-02
  • 2022-12-23
  • 2022-01-08
  • 2021-06-17
  • 2021-09-05
猜你喜欢
  • 2021-04-16
  • 2021-03-28
  • 2021-12-02
  • 2021-11-29
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案