레이블이 pip.conf인 게시물을 표시합니다. 모든 게시물 표시
레이블이 pip.conf인 게시물을 표시합니다. 모든 게시물 표시

pip config comment

# git+http 로 pip 패키지 설치시 dependencies 단계에서 진행이 되지 않는다.
pip install git+https://github.com/psf/black
Looking in indexes: https://pypi.org/simple, http://사설(extra-index-url),

... 생략 ...
  Installing build dependencies ... 

# 원인은 pip.conf 사설 extra-index-url 설정 때문이었다.
# pip install requests 와 같이 git+https 가 아닌 경우 
# --isolated (사용자 환경변수나 구성 무시)옵션을 사용하면 설치된다.
# pip install requests --isolated

# 해결방법1
# extra-index-url 주석처리하면 설치된다.
# 주석처리는 # 로 할 수 있다.
# pip config 파일 수정
pip config edit

# 해결방법2(삭제해도 되는 경우)
pip config unset global.extra-index-url

# 참고로 pip install 시 extra-index-url 은 추가만 되고 삭제나 무시돼는 옵션이 없다.
# 관련해서 이슈화되었지만 진행은 안되고 있다.

# 기타 config 관련 정보
# config 설정 리스트
pip config list

# config 파일 수정
pip config edit

# global > user > site 우선순위로 설정된다.