본문 바로가기

Management

[ MAC ] python setuptool 설치하는 방법

#!/bin/sh


cd ~


# Downloads python setuptools for 2.6

curl -o setuptools-0.6c11-py2.6.egg http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086


# installs it, will probably prompt you for password

sudo sh setuptools-0.6c11-py2.6.egg


# clean up and delete egg

rm setuptools-0.6c11-py2.6.egg


setuptool을 다운받은 후, 해당 패키지를 설치하는 과정을 나열하고 있습니다.

설치를 하게 되면 다음과 같이 정보를 알 수 있습니다.

il-yun-ui-MacBook-Pro:Downloads ilyun$ sudo sh setuptools-0.6c11-py2.6.egg

Password:

Processing setuptools-0.6c11-py2.6.egg

Copying setuptools-0.6c11-py2.6.egg to /Library/Python/2.6/site-packages

Adding setuptools 0.6c11 to easy-install.pth file

Installing easy_install script to /usr/local/bin

Installing easy_install-2.6 script to /usr/local/bin


Installed /Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg

Processing dependencies for setuptools==0.6c11

Finished processing dependencies for setuptools==0.6c11