You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm installed openssl version 3.1.1 but still this error in below.
Traceback (most recent call last):
File "enhance_image.py", line 4, in
from torchvision.transforms import Resize, CenterCrop, ToTensor, Normalize
File "C:\Python37\lib\site-packages\torchvision_init_.py", line 5, in
from torchvision import datasets, io, models, ops, transforms, utils
File "C:\Python37\lib\site-packages\torchvision\datasets_init_.py", line 1, in
from .optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
File "C:\Python37\lib\site-packages\torchvision\datasets_optical_flow.py", line 12, in
from .utils import read_pfm, verify_str_arg
File "C:\Python37\lib\site-packages\torchvision\datasets\utils.py", line 22, in
import requests
File "C:\Python37\lib\site-packages\requests_init.py", line 43, in
import urllib3
File "C:\Python37\lib\site-packages\urllib3_init.py", line 42, in
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'. See: urllib3/urllib3#2168
The text was updated successfully, but these errors were encountered:
The reason why the error message mentioned OpenSSL 1.1.1+ and LibreSSL 2.8.3 is that urllib3 v2.0 (the version you've installed) requires OpenSSL 1.1.1+ to work properly, as it relies on some new features of OpenSSL 1.1.1.
You can try to install a newer version of OpenSSL or you can downgrade the version of urllib using pip install 'urllib3<2.0'.
I'm installed openssl version 3.1.1 but still this error in below.
Traceback (most recent call last):
File "enhance_image.py", line 4, in
from torchvision.transforms import Resize, CenterCrop, ToTensor, Normalize
File "C:\Python37\lib\site-packages\torchvision_init_.py", line 5, in
from torchvision import datasets, io, models, ops, transforms, utils
File "C:\Python37\lib\site-packages\torchvision\datasets_init_.py", line 1, in
from .optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
File "C:\Python37\lib\site-packages\torchvision\datasets_optical_flow.py", line 12, in
from .utils import read_pfm, verify_str_arg
File "C:\Python37\lib\site-packages\torchvision\datasets\utils.py", line 22, in
import requests
File "C:\Python37\lib\site-packages\requests_init.py", line 43, in
import urllib3
File "C:\Python37\lib\site-packages\urllib3_init.py", line 42, in
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'. See: urllib3/urllib3#2168
The text was updated successfully, but these errors were encountered: