티스토리 뷰

728x90
반응형

패키지 리스트 만들기 

pip freeze 명령으로 현재 파이썬 환경에 설치된 패키지 리스트들을 넣을 수 있다

pip freeze > requirements.txt

requirements.txt를 개발하는 코드와 같이 넣어가지고 다니면 편하게 해당 코드를 실행하기 위한 

패키지를 한꺼번에 설치가 가능하다. 

 

패키지 리스트로 설치하기 

pip install -r requirements.txt

 

사실 requirements.txt의 내용은 아주 간단하다.  pip install 다음에 표시할 패키지 이름과 버전이 표시된 리스트이다. 예를 들면 다음과 같은 형식이다.

 

astor==0.7.1
backcall==0.1.0
bleach==3.1.0
cloudpickle==0.8.0
cycler==0.10.0
dask==1.1.1
decorator==4.3.2
defusedxml==0.5.0
entrypoints==0.3
gast==0.2.2
grpcio==1.18.0
h5py==2.9.0
ipykernel==5.1.0
ipython==7.3.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.2
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
Keras==2.2.4
Keras-Applications==1.0.7
Keras-Preprocessing==1.0.9
kiwisolver==1.0.1
Markdown==3.0.1
MarkupSafe==1.1.0
matplotlib==3.0.2
mistune==0.8.4
music21==5.5.0

 

728x90
반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/06   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
글 보관함