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 |
---|