2014-11-03 4 views
3

내 Mac에서 easy_install을 설정하려고합니다. 하지만 다음과 같은 오류가 발생합니다.setuptools easy_install mac error

Installing Setuptools running install Checking .pth file support in /Library/Python/2.7/site-packages/ error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-789.pth'

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

/Library/Python/2.7/site-packages/

+0

어떤 명령을 실행합니까? (어떤 방법으로 easy_install을 설치합니까?) – damienfrancois

+0

sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | python – Berendschot

답변

7

다시 '/Library/Python/2.7/site-packages/

+0

여전히 같은 오류가 발생합니다. – Berendschot

+3

'curl' 명령이 아니라'python' 명령을 sudo해야합니다. 이런 방식으로 명령을 실행하려면 bootstrap.pypa.io/ez_setup.py의 사람들을 절대적으로 신뢰해야합니다. – damienfrancois

+0

'easy_install'명령을 여전히 찾지 못한 경우를 제외하고는 효과가 있음 – Berendschot

0

rbenv하기는 다소 유사한 pyenv을 시도하고 당신이 돈 경우 제거하는 것이 더 쉽습니다'에 쓸 수 있도록 sudo python ...를 사용해보십시오 그것을 필요로하지 않는다. 또한 시스템 의존성을 고치지 않고 다른 버전의 비단뱀을 가지고 놀 수 있습니다.

0

액세스 관련 문제는 curl bootstrap.pypa.io/ez_setup.py -o - | sudo python을 시도하십시오.

0

install.sh에서 "python setup.py ..."전에 "sudo"를 추가 할 수 있습니다.