电脑上面有些脚本是python2的,有些是python3的,但是系统默认是python2,需要设置环境变量来进行切换.

python2切换到python3:

     echo alias python=python3 >> ~/.bashrc
     source ~/.bashrc