I’m trying to install docker-compose-1.18.0-4.el7.noarch.rpm on redhat 7 linux box that is offline and not connected to any network, or repos. Don’t have RPM available so I’m using
yum install docker-compose-1.18.0-4.el7.noarch.rpm
to install rpms. This rpm apparently requires python3.6(abi) to run where I had python=2.7 installed as redhat default.
So, I installed python3.6 by following this how to install python 3.x version in /usr/bin/?. I changed the .bashrc file to set alias python=python3.So whenever I type python –version it returns python3.6.x
However, when I try to install the docker-compose rpm again, I do have some dependencies missing such as python36-docker, python36-jsonschema, python36-cached property, and such. So I downloaded those rpm files from rpmfind.net and try to install each of those rpms, but I can’t install any of them because of this error
Requires: python3.6(abi)
Installed: python2.7.5-89.el7.x86_64.
I think I have python3.6 installed properly. How can I resolve this error so that yum install detects python3.6 instead of python2.7?
Tried setting export PATH and alias to python3.6. Still the same error.
Noob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.