title: docker-compose gives error "ImportError: No module named ssl_match_hostname" when run as normal user
body: <p>I've installed docker-compose with 'pip2.7 install docker-compose" but when I try to run it as 'normal' user I get the following error message:</p>
  
  <pre><code>mike@hugin:~/Tobedeleted$ docker-compose  -v
  Traceback (most recent call last):
    File "/usr/local/bin/docker-compose", line 7, in &lt;module&gt;
      from compose.cli.main import main
    File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 17, in &lt;module&gt;
      from . import errors
    File "/usr/local/lib/python2.7/dist-packages/compose/cli/errors.py", line 10, in &lt;module&gt;
      from docker.errors import APIError
    File "/usr/local/lib/python2.7/dist-packages/docker/__init__.py", line 2, in &lt;module&gt;
      from .api import APIClient
    File "/usr/local/lib/python2.7/dist-packages/docker/api/__init__.py", line 2, in &lt;module&gt;
      from .client import APIClient
    File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 11, in &lt;module&gt;
      from .build import BuildApiMixin
    File "/usr/local/lib/python2.7/dist-packages/docker/api/build.py", line 9, in &lt;module&gt;
      from .. import utils
    File "/usr/local/lib/python2.7/dist-packages/docker/utils/__init__.py", line 2, in &lt;module&gt;
      from .build import tar, exclude_paths
    File "/usr/local/lib/python2.7/dist-packages/docker/utils/build.py", line 4, in &lt;module&gt;
      from .utils import create_archive
    File "/usr/local/lib/python2.7/dist-packages/docker/utils/utils.py", line 18, in &lt;module&gt;
      from .. import tls
    File "/usr/local/lib/python2.7/dist-packages/docker/tls.py", line 5, in &lt;module&gt;
      from .transport import SSLAdapter
    File "/usr/local/lib/python2.7/dist-packages/docker/transport/__init__.py", line 3, in &lt;module&gt;
      from .ssladapter import SSLAdapter
    File "/usr/local/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 21, in &lt;module&gt;
      from backports.ssl_match_hostname import match_hostname
  ImportError: No module named ssl_match_hostname
  </code></pre>
  
  <p>This user is part of the docker group and can run 'docker ps' etc without any issue.</p>
  
  <p>If I try to run 'sudo docker-compose -v' I get the same error.</p>
  
  <p>However, if I run 'sudo su -' first and then issue 'docker-compose -v' I get the expected output.</p>
  
  <pre><code>root@hugin:~# docker-compose -v
  docker-compose version 1.11.2, build dfed245
  </code></pre>
  
  <p>I've tried 'pip uninstall' for various, and all, parts of docker-compose, ssl_match_hostname and then reinstall but nothing seems to resolve it.</p>
  
  <p>I'm now thoroughly stuck - any ideas out there?</p>