Backend/π Python
[Open AI API μλ¬] ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3
Hugehoo
2023. 5. 28. 18:29
FastAPI λ‘ μ°νΌν° import ν λ λ°μν μλ¬
FastAPI λ΄λΆμ μ€μΉλ urllib3 v2.0 μ΄ OpenSSL 1.1.1+ λ²μ λ§ μ§μνλ€κ³ νλ€.
Error message
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3. See: https://github.com/urllib3/urllib3/issues/2168
κ·ΈλΌ μ΄λ»κ² ν κΉ? μλ¬λ₯Ό ν΄κ²°νλ μ¬λ¬ λ°©λ²μ΄ μμ§λ§, νμλ κ°λ¨ν urllib3μ λ²μ μ 2.0λ³΄λ€ μλλ‘ λ€μ΄κ·Έλ μ΄λ νλ€
ν΄κ²°
pip uninstall urllib3
pip install 'urllib3<2.0'
λ€μ΄κ·Έλ μ΄λ ν fastApi λ₯Ό μ€ννμ.
endpoint λ₯Ό νΈμΆνλ©΄ μ μμ μΌλ‘ μ€νλλ€.