Error
lib\site-packages\urllib3\__init__.py in <module>
38 raise ImportError(
---> 39 "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
40 f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION}. "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.1.0h 27 Mar 2018. See: https://github.com/urllib3/urllib3/issues/2168
Solution
This error message is indicating that the version of OpenSSL installed on your system is too old to work with the version of urllib3 you are using. To fix this issue, you can either upgrade OpenSSL to version 1.1.1 or newer, or downgrade urllib3 to a version that is compatible with your current version of OpenSSL.
To upgrade OpenSSL, you can download and install the latest version of OpenSSL for your operating system from the OpenSSL website: https://www.openssl.org/source/
To downgrade urllib3, you can run the following command in your terminal or command prompt:
pip install urllib3==1.26.6
This will install version 1.26.6 of urllib3, which is compatible with OpenSSL 1.1.0.
No comments:
Post a Comment
Thanks for your comments