mac - homebrew, pip 설치하기
mac - homebrew, pip 설치하기
환경 : 맥미니 2014, Yosemite
1. Homebrew 설치하기.
- 터미널 창에 다음 명령어를 입력후 실행하면, 간단하게 설치 완료됨.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 설치후 버전 확인
$ brew -v
Homebrew 0.9.5
- 설치후 homebrew update 하기.
$ brew update
2. pip 설치하기.
- 터미털 창에 다음 명령어를 입력후 본인암호 입력하면 pip 설치됨.
( 본인은 homebrew 설치후에 아래 명령어를 실행했음.)
$ sudo easy_install pip
- 설치 확인
$ pip
(여담) 본인은 처음에 모르고 homebrew 로 pip 설치하려함.
이때 error massage 보여주면서 위와 같은 명령어로 pip 설치하라고 나와서 그대로 해보니 성공 !!!
$ brew install pip
Error: No available formula for pip
Homebrew provides pip via: `brew install python`. However you will then
have two Pythons installed on your Mac, so alternatively you can:
sudo easy_install pip