'Update'에 해당되는 글 1건

Python All Package Update

IT/Python 2020. 11. 29. 17:29

Python All Package Update

 

$ pip freeze > requirements.txt

 

open the text file, replace the == with >= , and execute

 

$ pip install -r requirements.txt --upgrade

 

If you have a problem with a certain package stalling the upgrade (numpy sometimes), just go to the directory ($), comment out the name (add a # before it) and run the upgrade again. You can later uncomment that section back. This is also great for copying python global environments.

 


Another way:

 

I also like the pip-review method:

 

py2

$ pip install pip-review

 

$ pip-review --local --interactive

 

py3

$ pip3 install pip-review

 

$ pip-review --local --interactive

반응형

'IT > Python' 카테고리의 다른 글

아나콘다 배포 패키지 설치 및 아나콘다 관리하기  (0) 2016.12.06
블로그 이미지

조이풀 라이프

Lift is short, enjoy the life

,