标签:
[root@cache1 www]# docker-compose
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 pip # 先升级下pippip install docker-compose# 执行如下命令docker-compose --help# 报如下错误: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标签:
原文地址:http://www.cnblogs.com/jackluo/p/5741103.html