更改Ubuntu默认python版本的两种方法

1:查看系统上的所有python版本

ls /usr/bin/python*

2:修改系统版本

# update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in auto mode
# update-alternatives --install /usr/bin/python python /usr/bin/python3.4 2
update-alternatives: using /usr/bin/python3.4 to provide /usr/bin/python (python) in auto mode

https://blog.csdn.net/fang_chuan/article/details/60958329

你可能感兴趣的:(python)