-
[Python] 라이브러리를 배포 (Exporting libraries)Python 2019. 1. 7. 02:11
Python 으로 프로그램을 짜고, 난 뒤 다른 PC 에서 작업을 한다던가 하는 일이 발생합니다.
그럼 다시 라이브러리들을 설치하고 뭐 하고 한 줄 씩 치고 .. 아 귀찮습니다.
그럴 땐 간단하게, txt 파일로 목록을 나열 한 뒤에 명령어를 통해 설치하시면 빠르고 쉽게 완료 됩니다.
물론 python 은 버전이 중요하니 버전 부분도 함께 명시해주시면 됩니다.
After making programme by Python, it could happen to move environments.
It must be boring and a long journey because you have to write command each libraries, but now you don't need to do this working anymore. You can use these command with making a text file like the below, it can control the version.
# Command
pip install -r libraries.txt
# libraries.txt
numpy
matplotlib >= 10, <13
'Python' 카테고리의 다른 글
[Python] python2 and 3 libraries install (0) 2019.03.12 [Python] Creating float 2D array 2차원 float 배열 생성 (0) 2018.12.26 댓글