Homebrew, python2.7 파이썬 설치하기
터미널에서 다음을 복사하고 엔터
(sudo 권한 필요없음)
* [new tag] 1.1.8 -> 1.1.8
* [new tag] 1.1.9 -> 1.1.9
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.1 -> 1.2.1
HEAD is now at 8d514ae Merge pull request #2716 from reitermarkus/re-revert
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4428, done.
remote: Compressing objects: 100% (4233/4233), done.
remote: Total 4428 (delta 35), reused 471 (delta 13), pack-reused 0
Receiving objects: 100% (4428/4428), 3.52 MiB | 1010.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Tapped 4231 formulae (4,471 files, 11MB)
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/urbanplay-yh/Library/Caches/Hom
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
http://docs.brew.sh/Analytics.html
==> Next steps:
- Run `brew help` to get started
- Further documentation:
http://docs.brew.sh
$
이렇게 나오면 설치 성공
Homebrew가 설치됐으면 Homebrew 디렉토리를 PATH
환경 변수의 최상단에 넣으세요. ~/.profile
파일의 마지막 줄에 다음과 같이 덧붙이면 됩니다.
라고 입력하면 파이썬 설치됨.
맥은 기본으로 파이선이 깔려 있는데, 이상하게 자꾸 에러가 나서 나는 다시 설치했다.
이렇게 다시 설치하면 기존에 설치한 파이썬 패키지들을 다시 깔아야함
참고 : http://python-guide-kr.readthedocs.io/ko/latest/starting/install/osx.html