Blog categories

Comments

[Python] Pip 사용

[Python] Pip 사용

Install Package

pip install <package_name>
pip install <package_name>==<version>

설치 가능한 패키지의 버전 확인

pip index versions <package_name>

For example:

pip index versions numpy

* Note: pip search 는 deprecated 되었습니다.

Attention

PyPI no longer supports pip search (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.

However, XML-RPC search (and this command) may still be supported by indexes other than PyPI.

설치된 packages의 목록 및 version 확인

pip freeze [options]
pip show [options] <package> ...

freeze: Output installed packages in requirements format.

show: Show information about one or more installed packages.

* freeze의 경우 requirements format으로 뽑아주기 때문에, 이를 바로 requirements.txt 파일로 저장하여 활용 가능

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://tech.sangron.com/wp-content/uploads/sites/2/2018/02/python_wallpaper_background.jpg);background-color: #3f3f3f;background-size: cover;background-position: top center;background-attachment: initial;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 350px;}