urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0j 20 Nov 2018'. See:
时间: 2023-10-15 15:22:47 浏览: 78
openssl-1.1.0f.tar.gz
5星 · 资源好评率100%
To resolve this issue, you need to update the OpenSSL version on your system to at least 1.1.1. Here are the steps to do that:
1. Check your current OpenSSL version:
```
openssl version
```
2. If your OpenSSL version is lower than 1.1.1, proceed with the update.
3. Download the latest OpenSSL source code from the official website or clone it from the GitHub repository.
4. Extract the downloaded source code to a directory on your machine.
5. Open a terminal or command prompt and navigate to the directory where you extracted the OpenSSL source code.
6. Run the following commands to configure, build, and install OpenSSL:
```
./config
make
sudo make install
```
7. Once the installation is complete, verify that the new version is installed by running `openssl version` again.
After updating OpenSSL, you should be able to use urllib3 v2.0 without any issues.
阅读全文