-
python 패키지 생성 설치python 2021. 7. 19. 11:21반응형
설치된 패키지 리스트 확인
(search-chat-rule) ➜ ~ pip list Package Version ---------- ------------------- certifi 2021.5.30 pip 21.1.3 setuptools 52.0.0.post20210125 wheel 0.36.2
requirement.txt 에 있는 패키지 리스트 한 번에 설치
기존 requirement.txt 내용
requests elasticsearch>=6.0.0,<7.0.0 numpy==1.19.4 pandas==1.1.4
requirements.txt에 나열된 패키지 한 번에 설치
(search-chat-rule) ➜ search-chat-rule git:(master) pip install -r ./chat_rule_check/requirements.txt Collecting requests Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB) |████████████████████████████████| 62 kB 370 kB/s Collecting elasticsearch<7.0.0,>=6.0.0 Downloading elasticsearch-6.8.2-py2.py3-none-any.whl (90 kB) |████████████████████████████████| 90 kB 1.2 MB/s Collecting numpy==1.19.4 Downloading numpy-1.19.4-cp38-cp38-macosx_10_9_x86_64.whl (15.3 MB) |████████████████████████████████| 15.3 MB 10.5 MB/s Collecting pandas==1.1.4 Downloading pandas-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl (10.1 MB) |████████████████████████████████| 10.1 MB 3.9 MB/s Collecting pytz>=2017.2 Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting python-dateutil>=2.7.3 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) |████████████████████████████████| 247 kB 9.6 MB/s Collecting urllib3>=1.21.1 Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB) Collecting six>=1.5 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting charset-normalizer~=2.0.0 Downloading charset_normalizer-2.0.3-py3-none-any.whl (35 kB) Collecting idna<4,>=2.5 Downloading idna-3.2-py3-none-any.whl (59 kB) |████████████████████████████████| 59 kB 5.0 MB/s Requirement already satisfied: certifi>=2017.4.17 in /opt/anaconda3/envs/search-chat-rule/lib/python3.8/site-packages (from requests->-r ./chat_rule_check/requirements.txt (line 1)) (2021.5.30) Installing collected packages: six, urllib3, pytz, python-dateutil, numpy, idna, charset-normalizer, requests, pandas, elasticsearch Successfully installed charset-normalizer-2.0.3 elasticsearch-6.8.2 idna-3.2 numpy-1.19.4 pandas-1.1.4 python-dateutil-2.8.2 pytz-2021.1 requests-2.26.0 six-1.16.0 urllib3-1.26.6
패키지 파일 생성 또는 업데이트
개발이 끝나고 패치지 관리를 위해
(search-chat-rule) ➜ search-chat-rule git:(master) pip freeze > ./chat_rule_check/requirements.txt
변경된 requirements.txt 내용
certifi==2021.5.30 charset-normalizer==2.0.3 elasticsearch==6.8.2 idna==3.2 numpy==1.19.4 pandas==1.1.4 python-dateutil==2.8.2 pytz==2021.1 requests==2.26.0 six==1.16.0 urllib3==1.26.6
반응형'python' 카테고리의 다른 글
anaconda 프로젝트 별 환경 생성 (0) 2021.07.19 형태소 분석기 mecab-ko 설치 + 사전 적용(+우선순위 높이기) (0) 2021.02.03