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

相关文章:

  • 2021-07-21
  • 2021-11-10
  • 2021-07-12
  • 2021-11-16
  • 2021-07-20
  • 2021-09-29
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案