ImportError: No module named ssl_match_hostname when importing the docker SDK for Python

前端 未结 8 897
失恋的感觉
失恋的感觉 2021-02-04 03:49

In order to use the Docker SDK for Python, I\'m trying to import docker in a Python script, but it\'s resulting in an ImportError with the following tr

8条回答
  •  没有蜡笔的小新
    2021-02-04 04:23

    I faced the similar issue however was able to resolve by first uninstalling with following commands -

    pip uninstall backports.ssl_match_hostname

    Once it gets uninstalled successfully then use following commands to install docker client with -

    pip install docker-py

    I hope this would help to resolve this issue

提交回复
热议问题