By default, the pip install
command installs the latest version of a package.
However, it is often necessary to install an old version of a package to much some specific requirements.
In this post i am showing how to install the specific version of a package using the pip install
command.
Cool Tip: Basic pip
command examples! Read More →
Pip – Install Specific Version of a Package
List all available versions of a package:
$ pip install <PACKAGE>==
Install the specific version of a package:
$ pip install <PACKAGE>==<VERSION>
The specific versions of the packages can also be defined in requirements.txt
file:
MySQL-python==1.2.3 WebOb==1.2.3 numpy==1.11.1
Install the specific versions of the packages from the requirements.txt
file:
$ pip install -r requirements.txt