Ubuntu comes with python 2.5 by default. As a result, I installed python 2.6. I checked it online and found that python 2.5 is the most popular version currently, some python libraries use this version, so you have to switch back to python 2.5. In fact, multiple python versions can coexist in linux, however, when running in the terminal, you can enter Python or Python to enter different versions.
Ubuntu comes with python 2.5 by default. As a result, I installed python 2.6. I checked it online and found that python 2.5 is the most popular version currently, some python libraries use this version, so you have to switch back to python 2.5. In fact, multiple python versions can coexist in linux, but when running in the terminal, you can enter different versions by entering python2.5 or python2.6, and in your *. which can be used in The py file #! /Usr/bin/python is used to specify the interpreter version of the program. However, this method is inconvenient to use, so you can point to the/usr/bin/python shortcut and modify it.
:~ $ Sudo rm/usr/bin/python
:~ $ Sudo ln-s/usr/include/python2.5/usr/bin/python
In this case, input python 2.5 by default in the terminal.
It's very easy. I am also a beginner. It's no difficulty. Just take a study note.