ubuntu将python3添加到环境变量

当系统中安装多个python版本时,输入python默认调用的是python2,这就需要我们把python3添加到环境变量:

echo alias python=python3 >> ~/.bashrc

更新环境变量:

source ~/.bashrc

猜你喜欢

转载自blog.csdn.net/qq_38441692/article/details/89336725