Learning about PyPI

Learning about PyPI

The Python Package Index (PyPI) is an awesome repository of software for the Python programming language. It helps us to find and install software developed and shared by the Python community.

For many projects, we can just use the Python packages here from the link: pypi.org

So here is how to install packages: Let us type "openpyxl" in the browser of the "pypi.org". This is a package that we use for working with Excel spreadsheets.

10.04.png

We are going to type " pip install openpyxl " in our terminal window to install this program.

It will look like this:

PycharmProjects\pythonProject\HelloWorld> pip install openpyxl
Requirement already satisfied: openpyxl in c:\users\lenovo\pycharmprojects\pythonproject\helloworld\venv\lib\site-packages (3.0.9)
Requirement already satisfied: et-xmlfile in c:\users\lenovo\pycharmprojects\pythonproject\helloworld\venv\lib\site-packages (from openpyxl) (1.1.0)
PS C:\Users\LENOVO\PycharmProjects\pythonProject\HelloWorld>

Now, this package is stored on the disk in "site-packages". In each packages, there are several modules. How can you see it on PyCharm:

10.04.png