Python Package Index (PyPI)
The Python Package Index (PyPI), also known as the Cheese Shop, is the official third-party software repository for Python. It is run by the Python Software Foundation and serves as the default source for packages and dependencies for tools like pip.
Ключевые величины
| Packages | Date | Package formats |
|---|---|---|
| 614,339 | 13 March 2025 | 2 main types |
| 1 | official repository | sdists and wheels |
| 3 | package managers (pip, etc.) | binary modules possible |
| 1 | charity (PSF) | multiple OS and Python versions |
Порядок действий
- Install Python and ensure pip is available.
- Search for a package on PyPI by keyword or metadata filter.
- Install the package using pip, which defaults to PyPI.
- Specify version or wheel format if needed for your OS or Python version.
- Upgrade or uninstall packages using pip commands.
- Check package metadata for license and compatibility.
What is PyPI?
PyPI is the official third-party software repository for Python, analogous to CPAN for Perl and CRAN for R. It is run by the Python Software Foundation, a charity.
Package formats
PyPI primarily hosts Python packages as source archives called sdists or as wheels that may contain binary modules from compiled languages. A single entry can store previous releases, precompiled wheels, and different forms for various operating systems and Python versions.
Usage and statistics
As of 13 March 2025, more than 614,339 packages are available on PyPI. Package managers like pip use PyPI as the default source for packages and dependencies.