Install a specific version of a package with pip
March 19, 2021 ‐ 1 min read
Most often installing the latest version of a package will do. For some cases you require an older version of a package, for example when the newest version of the package you'd like to install isn't compatible with the Python version you're running.
If you don't specify a version when installing a package than pip will go for the latest version available.
$ pip install httpie
To specify the version of the package you like you use the same scheme as you might be familiar with from the
$ pip install httpie==2.3.0
You install the specific version with