pip3으로 설치할 때 보는 경고
$ pip3 install cookiecutter --user
WARNING: The Script slugify is installed in 'home/robocare/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
WARNING: The script cookiecutter is installed in '/home/robocare/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
$ sudo pip3 install cookiecutter
# 모듈 설치 경로
# /lib/python3/dist-packages
# /usr/lib/bin
$ pip3 install cookiecutter --user
# 모듈 설치 경로
# ~/.local/python3/site-packages
# ~/.local/bin
설치 경로에서 알 수 있듯이 WARNING은 '--user' 옵션을 사용하면 명령어 파일이 접속 사용자에게만 설치되니까, ~/.local/bin 경로를 PATH 등록하는걸 고려하라는 뜻이다
댓글
댓글 쓰기