2015-01-14 2 views
0

방금 ​​새로운 MacBook Pro를 만들기 시작했습니다. 저는 관리자입니다. 나는 핍 명령을 실행하면 나는 지속적으로 권한과 같은 오류를 거부 얻을 :'pip install <package>'일치하는 권한이 거부되었습니다.

The directory '/Users/nate_argetsinger/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag. 
The directory '/Users/nate_argetsinger/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag. 
The directory '/Users/nate_argetsinger/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag. 

을 -h 플래그를 억제을 추가 : 나는

$ sudo pip install <package> 

나는이 오류가 실행

Permission denied: '/lib/python2.7/site-packages/'

오류. 사전에

➜ startbootstrap-agency git:(gh-pages) ✗ ls -l 

... 

drwx------ 3 nate_argetsinger staff 102 Jan 14 03:29 c 
drwx------ 3 nate_argetsinger staff 102 Jan 14 03:42 d 
drwx------ 5 nate_argetsinger staff 170 Jan 14 03:29 f 
➜ startbootstrap-agency git:(gh-pages) ✗ whoami 
nate_argetsinger 
➜ startbootstrap-agency git:(gh-pages) ✗ 

감사 :

마지막으로, 나는 오류 메시지가 참조하는 디렉토리를 소유 한 사용자를 나는 믿는다.

+2

당신이 가진 문제를 해결해 주어서 좋습니다. 질문이 뭐야? – Carsten

답변

2

sudo의 (부적절한) 사용으로 인해 홈 디렉토리에 대한 권한이 손상된 것으로 보입니다.

이 문제를 해결하는 가장 좋은 방법은 디스크 유틸리티에서 "디스크 사용 권한 복구"옵션을 실행하는 것입니다.

관련 문제