한 번만 더 해보자

[Linux] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv 본문

Linux

[Linux] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

정 하임 2023. 10. 30. 20:25

원인

도커 컨테이너에서 opencv-python을 설치하려고 했는데 다음 에러가 뜸

 

 

에러 설명

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>

pip를 루트 유저로 실행하는 것은 권한을 파괴할 수 있고 시스템 패키지 매니저와 상충하는 행동을 할 수 있다

 

 

해결방안

--root-user-action 설치

pip install --root-user-action=ignore opencv-python
반응형