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
import docker
ImportError
Upgrading docker didn't solve the problem for me. Instead, I had to install the backports as Ubuntu package (and uninstall from pip):
sudo pip uninstall backports.ssl-match-hostname sudo apt-get install python-backports.ssl-match-hostname