问题
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h 27 Mar 2018'
- 运行app自动化测试用例,控制台报错该信息
问题原因
- urllib3 v2.0 仅支持ssl1.1.1+版本的,版本是1.1.0 版本不兼容了,需要更新下openssl 或降级 urllib3
解决方法
pip uninstall urllib3
pip install urllib3==1.26.15