Docker - pkg resources.DistributionNotFound:backports.ssl-match-hostname over 3.5

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Docker - pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5

Ошибка вида

# docker-compose up
Traceback (most recent call last):
 File "/usr/bin/docker-compose", line 5, in <module>
   from pkg_resources import load_entry_point
 File "/usr/lib/python2.7/site-packages/", line 3011, in <module>
   parse_requirements(__requires__), Environment()
 File "/usr/lib/python2.7/site-packages/", line 626, in resolve
   raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5

решается вот так:

# pip install --upgrade backports.ssl_match_hostname
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting backports.ssl-match-hostname
 Downloading backports.ssl_match_hostname-
Installing collected packages: backports.ssl-match-hostname
 Found existing installation: backports.ssl-match-hostname
   Uninstalling backports.ssl-match-hostname-
     Successfully uninstalled backports.ssl-match-hostname-
 Running install for backports.ssl-match-hostname 
Successfully installed backports.ssl-match-hostname-