DevOps/etc
[TIL] pip install 시 "Consider using the `--user` option or check the permissions" 에러
bandal-gom
2021. 1. 30. 21:58
Consider using the `--user` option or check the permissions.
pip로 패키지 설치시 이런 에러가 발생함.
권한이 없는 디렉토리에서 설치하려고 하기 때문에 발생하는 에러.
--user 옵션을 넣어서 설치하면 된다.
뭐든 모를땐 man page 나 -h를 사용해서 설명을 읽어본다.
--user 옵션은 권한없는 디렉토리 (내경우의 C드라이브)가 아닌 사용자의 디렉토리 (home directory)에 설치해준다.
--user Install to the Python user install directory for your platform. Typically ~/.local/, or
%APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full
details.)
반응형