Categories
How to set Python 2.7 as default?
Hello! The system has two pythons 2.6 and 2.7, now the default version of "python" is 2.6. I need it to be 2.7. How can I do it?
Answer the question
In order to leave comments, you need to log in
mkdir -p ~/.local/bin cd ~/.local/bin ln -s /usr/bin/python2.7 python export PATH=~/.local/bin/:$PATH
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question