C/C++에서 include를 하듯이, Python에서는 import를 한다.

 

Python의 매력은 언어 자체에만 있는 것이 아니라,

필요하다고 생각하는 것은 거의 다 존재하는... 정말 다양하고 멋진 패키지들이 있기 때문이다.

 

그런 패키지들은 어디에 저장이 되어있을까?!

 

 

▶ PyPI (Python Package Index)

repository of software for the Python programming language
Python package: collection of related code modules (files) bundled with metadata describing
                                how the package should be installed and used.

 

https://pypi.org/

 

 

▶ pip (package installer for Python)

- standard tool to install packages from PyPI
- The most popular tool for installing Python packages

 

https://pip.pypa.io/en/stable/

 

 

Python을 공부하면 알 수 밖에 없는 명령어가 바로 pip 이다.

Python을 설치하면 기본적으로 같이 설치되기 때문에 접근성에 있어서도 문제가 없다.

 

그래서 가끔 파이썬 패키지는 무조건 pip를 통해서만 설치해야 하는 줄 아는 사람도 있는데,

위 설명에서도 나오지만, pip는 그냥 "popular tool" 이다 !!!

 

파이썬 패키지 설치를 위한 도구는 pip 외에도 더 있다.

특히, 최근에는 "uv"라는 도구가 엄청난 인기를 얻고 있다.

 

다른 패키지 설치 도구들도 천천히 알아보도록 하겠다.

반응형

+ Recent posts