Linux changes the command of python3 to python

In the Linux system, you can use aliasthe command to python3change the command to python. Enter the following command in the terminal:

alias python='python3'

This way, when you enter a command in the terminal later python, it is actually running python3the command. If you want to take effect permanently, you can add this command to the ~/.bashrcor ~/.bash_aliasesfile.

Guess you like

Origin blog.csdn.net/qq_42629529/article/details/131172993