PIP (Package Installer for Python)

python -m pip install
python -m pip install --upgrade pip
 
# alias
alias pip="pip3"
  • python -m pip <command> [<switches>…] <archive_name>
  • pip3 <command> [<switches>…] <archive_name>
  • pip3 install {package}
    • -r requirements.txt: 명시된 패키지 한번에 설치가능
    • –quite, -q : 출력 최소화
    • –upgrde, -U: 업그레이드 또는 설치
  • freeze: 업그레이드 또는 설치
    freeze > requirements.txt: 패키지 추출
  • sync requirements.txt: 정확한 버전으로 동기화, 기존패키지 제거 지원
  • add -r requirements.txt: pyproject.toml에 의존성을 추가하고 설치.

pip3 --help

  • python/pip.txt
  • 마지막으로 수정됨: 2025/12/16 07:11
  • 저자 writer