엄청난 삽질을 하게 했던 ㅠㅠ 


1. Downloading and Installing the latest Python Release
http://python.org/download.

2. Moving Python into the right place
sudo mv /Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions

3. Fixing the Group (from admin to wheel)
sudo chown -R root:wheel /System/Library/Frameworks/Python.framework/Versions/3.3

4. Updating the Current Link
sudo rm /System/Library/Frameworks/Python.framework/Versions/Current
sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions/Current

5. Fixing /usr/bin
Remove the old python executable files and create new links

sudo rm /usr/bin/pydoc
sudo rm /usr/bin/python
sudo rm /usr/bin/pythonw
sudo rm /usr/bin/python-config

sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/pydoc3.3 /usr/bin/pydoc
sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 /usr/bin/python
sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/pythonw3.3 /usr/bin/pythonw
sudo ln -s /System/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3-config /usr/bin/python-config

6. Updating .bash_profile

vi ~/.bash_profile
-----------------------------------------------------------------
# Setting PATH for Python 3.3
# The orginal version is saved in .bash_profile.pysave
export PATH="/System/Library/Frameworks/Python.framework/Versions/3.3/bin":$PATH
-----------------------------------------------------------------
source ~/.bash_profile
/usr/bin/python -V

7. Updating your IDE

'컴&프로그래밍 > Python' 카테고리의 다른 글

5. 클래스  (0) 2014.12.20
4. 제어  (0) 2014.12.19
Google Python Tutorial - Basic Python Exercises #2 List  (0) 2014.12.11
Google Python Tutorial - Basic Python Exercises #1 String  (0) 2014.12.05
Python 2.x에서 3.x로 변경  (0) 2014.12.03
튜플 자료형 특이사항  (0) 2014.10.19
자료형과 연산자  (0) 2014.10.18
Hello Python  (0) 2014.10.15
Mac에서 python 3. x 버전 사용 하기  (3) 2014.10.12