1、原因
这个问题是python版本安装的 urllib3版本过高,而openssl版本太低导致的
2、解决方法
2.1、升级openssl版本
# centos yum -y update yum -y install openssl@1.1 # ubuntu apt -y update apt -y install openssl@1.1 # 安装好后,查看openssl版本是否升级到最新 python -c "import ssl; print(ssl.OPENSSL_VERSION)"
2.2、降低urllib版本
python3 -m pip install urllib3==1.26.6
- ImportError supports 错误 urllib3 OpenSSLimporterror supports openssl urllib3 importerror supports错误urllib3 importerror supports python3 openssl importerror urllib3 urllib only docker-compose importerror supports compose openssl 39 importerror currently importerror undefined 1ibldap openssl dependencies importerror required错误 importerror错误pycharm module importerror encoding错误 名称