- Check your python version
~$ python Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. - Mine is 3.2, what if I want to switch to default version 2.7
which python /usr/bin/python - Here is the command
sudo mv /usr/bin/python /usr/bin/python32 sudo ln -s /usr/bin/python2.7 /usr/bin/python
How to setup the default version on Ubuntu
最新推荐文章于 2025-12-02 15:22:49 发布
本文介绍如何在Linux系统中将默认的Python版本从3.2切换到2.7的方法。通过修改系统符号链接来实现版本切换,适用于需要在不同Python版本间进行工作的开发者。
2091

被折叠的 条评论
为什么被折叠?



