In order to use the Docker SDK for Python, I\'m trying to import docker
in a Python script, but it\'s resulting in an ImportError
with the following tr
The issue could be there because of different versions of Docker-compose and Docker. First compare the version and upgrade it to make it compatible.
Secondly,you can uninstall the backport package (via pip).
sudo pip uninstall backports.ssl-match-hostname
and then install it again as a ubuntu package.
sudo apt-get install python-backports.ssl-match-hostname