You can provide the package version with pip command using -v option as shown in the below example –
## Install specific package version
pip install -Iv
## You can even use a version range with pip install
pip install '
## To install a specific python package version whether it is the first time, an upgrade or a downgrade use
pip install --force-reinstall