필요 라이브러리가 설치된 프로젝트에서 아래 코드를 입력하면
pip freeze > requirements.txt
해당 프로젝트에 requirements.txt 파일이 생성된다.
해당 패키지를 다른 프로젝트에 설치하고 싶다면,
pip install -r requirements.txt
위의 코드를 입력한다.
requirements.txt 파일이 다른 경로에 있다면, 추가해줘야 한다.
참고)
- https://hello-bryan.tistory.com/128
'Automation > Python' 카테고리의 다른 글
Python) 리스트 내 중복 원소 제거 ... set() 함수 (0) | 2022.09.24 |
---|---|
Python) Python 설치 (0) | 2022.09.15 |