码迷,mamicode.com
首页 > 其他好文 > 详细

docker-compose启动报错,解决方案

时间:2016-08-05 15:40:42      阅读:445      评论:0      收藏:0      [点我收藏+]

标签:

  1. [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

  2. pip install --upgrade pip # 先升级下pip
  3. pip install docker-compose
  4. # 执行如下命令
  5. docker-compose --help
  6. # 报如下错误:
  7. Traceback (most recent call last):
  8. File "/usr/bin/docker-compose", line 5, in <module>
  9. from pkg_resources import load_entry_point
  10. File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
  11. parse_requirements(__requires__), Environment()
  12. File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
  13. raise DistributionNotFound(req)
  14. pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5
  15. # 解决方法:
  16. pip install --upgrade backports.ssl_match_hostname

docker-compose启动报错,解决方案

标签:

原文地址:http://www.cnblogs.com/jackluo/p/5741103.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!