How do I make Python 2 default?

Pham Quỳnh

New member
How do I make Python 2 default?
Answer
What you could alternatively do is to replace the symbolic link “python” in /usr/bin which currently links to python3 with a link to the required python2/2. x executable. Then you could just call it as you would with python 3. You could use
alias python= “/usr/bin/python2.
 

Tìm kiếm

Back
Top