[root@lnxa100 ~]# yum -y install python3-pip
Search for a package with specific version
https://pypi.org/simple/
On this page clic on the required package to find available versions
Install ansible 2.9 instead of 4.4 (latest), if latest is needed, do not specify a version
[root@lnxa100 alternatives]# pip3 install --proxy=http://user:passwd@proxy:2123 ansible==2.9 WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting ansible==2.9 Downloading https://files.pythonhosted.org/packages/59/3a/5b8aeca9b0b68e7a02fdfd7260f265be3b0605839d7367501aba4bcb2e14/ansible-2.9.0.tar.gz (14.1MB) 100% |████████████████████████████████| 14.1MB 91kB/s Requirement already satisfied: jinja2 in /usr/lib/python3.6/site-packages (from ansible==2.9) Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from ansible==2.9) Requirement already satisfied: cryptography in /usr/lib64/python3.6/site-packages (from ansible==2.9) Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python3.6/site-packages (from jinja2->ansible==2.9) Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible==2.9) Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib64/python3.6/site-packages (from cryptography->ansible==2.9) Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography->ansible==2.9) Installing collected packages: ansible Found existing installation: ansible 4.4.0 Uninstalling ansible-4.4.0: Successfully uninstalled ansible-4.4.0 Running setup.py install for ansible ... done Successfully installed ansible-2.9.0
If you downloads the tar.gz package you can do a local install
pip3 install ./downloads/SomeProject-1.0.4.tar.gz
List installed packages by ansible
[root@lnxa100 .ssh]# pip3 list --format=columns Package Version -------------------- ----------- ansible 2.9.0 ansible-core 2.11.4 asn1crypto 0.24.0 Babel 2.5.1