본문 바로가기
Programing Language/Python

[Python] requirements.txt 생성 및 설치

by pcm9881 2023. 2. 20.

requirements 생성

pip freeze > requirements.txt

 

requirements 기준 설치

pip install -r requirements.txt

 

참조

[pip freeze]: https://pip.pypa.io/en/stable/cli/pip_freeze/?highlight=requirements.txt

 

pip freeze - pip documentation v23.0.1

Previous pip show

pip.pypa.io

[pip install]: https://pip.pypa.io/en/stable/cli/pip_install/

 

pip install - pip documentation v23.0.1

py -m pip install --upgrade SomePackage Note This will guarantee an update to SomePackage as it is a direct requirement, and possibly upgrade dependencies if their installed versions do not meet the minimum requirements of SomePackage. Any non-requisite up

pip.pypa.io

 

728x90

'Programing Language > Python' 카테고리의 다른 글

[Python] 딕셔너리 키 존재여부 확인하기  (0) 2023.02.21
[Python] 타입 비교  (0) 2023.02.21
[Python] 개발환경 (pyenv, pyenv-virtualenv)  (0) 2023.02.17
Python Django 시작하기  (0) 2022.07.17
[Python] 가상 환경  (0) 2022.07.17

댓글