Z
Z
zkweb2015-08-06 10:58:53
Django
zkweb, 2015-08-06 10:58:53

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

1 answer(s)
D
Dvvarreyn, 2015-08-06
@Dvvarreyn

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 your question

Ask a Question

731 491 924 answers to any question