且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ImportError:导入用于Python的Docker SDK时,没有名为ssl_match_hostname的模块

更新时间:2023-08-21 12:00:04

升级docker无法解决我的问题。相反,我必须将反向端口安装为Ubuntu软件包(并从pip卸载):

Upgrading docker didn't solve the problem for me. Instead, I had to install the backports as Ubuntu package (and uninstall from pip):

sudo pip uninstall backports.ssl-match-hostname
sudo apt-get install python-backports.ssl-match-hostname