</>CodexBash
All articles
Python and JavaScript

pip and packages

How Python packages work: PyPI, installing with pip and python -m pip, version specifiers, requirements files, upgrading and uninstalling, why system Python refuses installs, and keeping dependencies safe and reproducible.

CodexBash, , 4 min read

Python's standard library covers a lot, but most real projects also use packages written by others: requests for HTTP, pandas for data, django for websites. pip is the tool that downloads and installs them. It is simple on the surface, and most of the confusing errors people hit come from a few misunderstandings about which Python it is installing into. This article clears them up.

Sign in to read the rest

The whole 4 minute article is free with an account, along with every problem, lesson and tutorial. No card.