urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h
时间: 2023-10-15 20:29:49 浏览: 114
Hello! It seems that you are facing an issue with the 'urllib3' library. The error message suggests that the version of 'urllib3' you are using (v2.0) requires OpenSSL 1.1.1, but the 'ssl' module is compiled with OpenSSL 1.1.0h. To resolve this issue, you have a few options:
1. Update OpenSSL: You can try updating OpenSSL to version 1.1.1 or higher. This might involve downloading and installing the latest version of OpenSSL from their official website.
2. Downgrade urllib3: If updating OpenSSL is not feasible or doesn't resolve the issue, you can try downgrading the 'urllib3' library to a version that is compatible with OpenSSL 1.1.0h. You can use a specific version of 'urllib3' by specifying it in your project's dependencies or by uninstalling the current version and installing an older version.
3. Check compatibility: Double-check the compatibility requirements of other libraries or frameworks you are using alongside 'urllib3'. Sometimes, there can be conflicts between different library versions that require different versions of OpenSSL.
Remember to consider the specific requirements and dependencies of your project before making any changes to your libraries or dependencies. It's always recommended to create a virtual environment for your project to manage dependencies effectively.
阅读全文