Safer, alias-creating method
However, what you can do, is create an alias for your personal use. This can be accomplished easily by adding the following line:
alias python=python3
or
alias python=/usr/bin/python3
/in the ~/.bash_aliases file - which you can edit via sudo nano ~/.bash_aliases. Then, close and reopen the terminal and you should be able to use the python command for your own personal use without it affecting the rest of the system.
However, this, again, isn't suggested because although you won't break any of the system-wide code that relies on proper placement of Python interpreters, I've heard it can cause other issues (that I don't know/remember.)
vi ~/.bash_aliases에 alias python=python3 또는 alias python=/usr/bin/python3
python3 위치는 which python3 로 찾으면 된다.
'Development' 카테고리의 다른 글
virtualenv 활용. (0) | 2016.05.29 |
---|