파이썬 모든 패키지,라이브러리 업데이트 하기,Updating All Packages In A Virtual Environment on Windows
Python 2022. 2. 18. 13:54참고원문: https://www.activestate.com/resources/quick-reads/how-to-update-all-python-packages/
# https://www.activestate.com/resources/quick-reads/how-to-update-all-python-packages/
import pkg_resources
from subprocess import call
for dist in pkg_resources.working_set:
call("python -m pip install --upgrade " + dist.project_name, shell=True)
원문의 dist.<projectname> --> dist.project_name 로 수정
'Python' 카테고리의 다른 글
[python] [ipynb to py 변환 방법] jupyter nbconvert --to python [filename].ipynb (0) | 2021.04.27 |
---|---|
python 주피터 노트북(jupyter notebook) 색상 및 테마변경하기 (0) | 2020.11.25 |
How can we improve coding skill?? (0) | 2020.11.20 |
Python youtube_dl.YoutubeDL() Examples (0) | 2020.11.03 |
youtube-dl옵션 자세히 설명 (youtube-dl - download videos from youtube.com or other video platforms) (0) | 2020.11.03 |