$ which python3
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3
$ vi .bash_profile
alias python="python3" <— 이 부분 추가 후 저장
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
$ source .bash_profile
$ python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3
$ vi .bash_profile
alias python="python3" <— 이 부분 추가 후 저장
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
$ source .bash_profile
$ python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
댓글
댓글 쓰기