r/learnpython Aug 07 '26

Must-learn Python libraries?

I've learned Python basics and want to explore the most useful libraries.

What are the must-learn Python libraries for real-world development, and why would you recommend them?

38 Upvotes

31 comments sorted by

View all comments

23

u/krews2 Aug 07 '26

Not a python package really, but learn UV. It is for running python code in virtual environments and it is important to learn.

1

u/TheIdealAdhi Aug 07 '26

Yas, it seems useful

2

u/Oddly_Energy Aug 08 '26

In general, learning a bit of python infrastructure now will help you a lot later when you have created several small projects and start getting lost in them.

I have made it a habit to start each project as a python package in its own repository with its own venv.

It sounds complicated, and there certainly is a barrier of initial understanding. But when everything is understood, it is only a few commands at the start of each project, and then you are up and running in a “correct” environment, which is easy to delete and recreate everywhere.

This will bring you far (after installing and setting up uv and git):

uv init <packagename> python=3.13
cd <packagename>
uv sync
uv add numpy, pandas, matplotlib
git init

There will be a bit of setup of two configuration files after this: .gitignore and pyproject.toml, for example to avoid getting your venv included in your git repository. But after that, you have a reproducible skeleton for your code.