将Ubuntu默认的python2改为python3
首先删除原有的python连接文件:
rm /usr/bin/python
然后建立指向python3.6的软连接:
ln -s /usr/bin/python3.5 /usr/bin/python
之后把路径/usr/bin/加入环境变量PATH中:
/usr/bin/
PATH=/usr/bin:$PATH
最后通过python --version即可查看。