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


Материал из Wiki - Iphoster - 'the best ever support'

Перейти к: навигация, поиск

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/pkg_resources.py", line 3011, in <module>
   parse_requirements(__requires__), Environment()
 File "/usr/lib/python2.7/site-packages/pkg_resources.py", 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-3.5.0.1.tar.gz
Installing collected packages: backports.ssl-match-hostname
 Found existing installation: backports.ssl-match-hostname 3.4.0.2
   Uninstalling backports.ssl-match-hostname-3.4.0.2:
     Successfully uninstalled backports.ssl-match-hostname-3.4.0.2
 Running setup.py install for backports.ssl-match-hostname 
Successfully installed backports.ssl-match-hostname-3.5.0.1
Индекс цитирования