npm i 처럼 패키지 일괄 설치

파이썬은 기본적으로 npm i 같은 자동 패키지 설치 설정이 안되어 있다.

pip freeze > requirements.txt

위 명령어로 requirements.txt 를 생성 후

pip install -r requirements.txt

를 사용하면 프로젝트를 처음 받은 사람도 일괄로 설치가 가능하다.

패키지가 파일로 저장되는 경우도 있다는데 이럴 땐

pip list --format=freeze > requirements.txt

를 사용하면 된다( 고 인터넷 블로그에 써있었다 )

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com