Bite Bits/Debian 9

debian 9 에서 pip.conf 위치

상영 2018. 1. 25. 11:36

python3 의 pip3 로 설치된 패키지 목록을 보려니 아래와 같이 문구가 나온다.

php.conf 에 format 관련 설정을 하면 경고문구가 안나온다는데, 위치가 어딘지..


$ pip3 list

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

... (하략) ..


검색하니 $HOME/.config/pip/pip.conf 가 Unix에서 기본 위치란다. 물론 /etc/pip.conf 는 글로벌 설정

virtualenv 를 사용할 때, 혹은 legacy 설정등에 대한 내용도 있으니 자세한 건 아래 "참고" 사이트를 보면 됨.


$ more ~/.config/pip/pip.conf

[list]

format=columns


$ pip3 list

Package       Version 

------------- --------

Brlapi        0.6.5   

chardet       2.3.0   

...(하략)...



* 참고 :

- pip User guide, https://pip.pypa.io/en/stable/user_guide/#config-file