1、许多Linux下默认使用的python版本是2.x版本,如果想要使用3.x版本,需要使用python3,感觉总是有点小麻烦,故切换为3.x版本,如下为切换方法:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
    2、如果有一天突然发现自己想要回心转意,使用python2.x版本,想要换回去,使用如下解决方案:
sudo update-alternatives --config python
    不喜勿喷,谢谢支持
                    
                
                
            
        
浙公网安备 33010602011771号