ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'

  • xixixaxa
    (OOooOOoo)
  • xixixaxa's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
21 Jul 2023 08:50 - 21 Jul 2023 08:51 #32063 작성자: xixixaxa
xixixaxa 님의 글: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'
$ python3 test.py
Traceback (most recent call last):
  File "wiki.py", line 1, in <module>
    import wikipediaapi
  File "/home/xixixaxa/.local/lib/python3.7/site-packages/wikipediaapi/__init__.py", line 17, in <module>
    import requests
  File "/home/xixixaxa/.local/lib/python3.7/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/xixixaxa/.local/lib/python3.7/site-packages/urllib3/__init__.py", line 42, in <module>
    "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.0.2k-fips  26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168

내 해결책은 다음과 같다.

$ pip3 uninstall urllib3
$ pip3 install 'urllib3<2.0'
성공.
Time to create page: 0.049 seconds
Powered by Kunena Forum