How to Solve Error Message python setup.py egg_info did not run successfully ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129) when running pip install -r requirements.txt in Microsoft Windows

Posted on

Introduction

In this article, the main focus is trying to solve an error message appear. That error message occur upon the execution of a certain command. It is a ‘pip install -r requirements.txt’ command where the execution is in a local device running using Microsoft Windows 11. Actually, the main purpose for executing the command above is for installing necessary library for a Django project to run properly. So, there is a file with the name of ‘requirements.txt’ which is important because it contains list of libraries necessary for the Django project.

As an additional information, this article has a connection with another article. Before an error message appear in this article, there is another error message occur. So, the discussion for solving the problem is also exist in that article. Furthermore, it has the same solution for solving the problem in that article. It is an article with the title of ‘How to Solve Error Message python setup.py egg_info did not run successfully distutils.errors.DistutilsPlatformError: –plat-name must be one of (‘win32’, ‘win-amd64’, ‘win-arm32’, ‘win-arm64′) when running pip install’ in this link. Without further description, just look at the following where there is a line where the actual error appear :

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

On the other hand, the full length of the actual command execution where in the end it trigger the above error exist as follows :

(env) C:\repository\docker\django\myproject>pip install -r reqs.txt
Collecting arabic-reshaper==2.1.3
  Using cached arabic_reshaper-2.1.3-py3-none-any.whl (20 kB)
Collecting asgiref==3.5.0
  Using cached asgiref-3.5.0-py3-none-any.whl (22 kB)
Collecting certifi==2020.6.20
  Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Requirement already satisfied: charset-normalizer==2.0.12 in c:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 5)) (2.0.12)
Collecting click==8.0.3
  Using cached click-8.0.3-py3-none-any.whl (97 kB)
Collecting colorama==0.4.4
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting cssselect2==0.5.0
  Using cached cssselect2-0.5.0-py3-none-any.whl (15 kB)
Collecting defusedxml==0.7.1
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting Django==4.0.2
  Using cached Django-4.0.2-py3-none-any.whl (8.0 MB)
Collecting flake8==4.0.1
  Using cached flake8-4.0.1-py2.py3-none-any.whl (64 kB)
Collecting future==0.18.2
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting html5lib==1.1
  Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
Requirement already satisfied: idna==3.3 in c:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 15)) (3.3)
Collecting ldap3==2.9.1
  Using cached ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
Collecting lxml==4.8.0
  Using cached lxml-4.8.0.tar.gz (3.2 MB)
  Preparing metadata (setup.py) ... done
Collecting mccabe==0.6.1
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting mypy-extensions==0.4.3
  Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting oauthlib==3.2.0
  Using cached oauthlib-3.2.0-py3-none-any.whl (151 kB)
Collecting pathspec==0.9.0
  Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting Pillow==9.0.1
  Using cached Pillow-9.0.1.tar.gz (49.5 MB)
  Preparing metadata (setup.py) ... done
Collecting platformdirs==2.5.1
  Using cached platformdirs-2.5.1-py3-none-any.whl (14 kB)
Collecting pyasn1==0.4.8
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pycodestyle==2.8.0
  Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
Collecting pycparser==2.21
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting pyflakes==2.4.0
  Using cached pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
Collecting PyJWT==2.3.0
  Using cached PyJWT-2.3.0-py3-none-any.whl (16 kB)
Collecting PyPDF3==1.0.6
  Using cached PyPDF3-1.0.6.tar.gz (294 kB)
  Preparing metadata (setup.py) ... done
Collecting python-bidi==0.4.2
  Using cached python_bidi-0.4.2-py2.py3-none-any.whl (30 kB)
Collecting python3-openid==3.2.0
  Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
Requirement already satisfied: requests==2.27.1 in c:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 33)) (2.27.1)
Collecting requests-oauthlib==1.3.1
  Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting six==1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting spark-parser==1.8.9
  Using cached spark_parser-1.8.9-py3-none-any.whl (17 kB)
Collecting sqlparse==0.4.2
  Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting svglib==1.2.1
  Using cached svglib-1.2.1.tar.gz (896 kB)
  Preparing metadata (setup.py) ... done
Collecting tinycss2==1.1.1
  Using cached tinycss2-1.1.1-py3-none-any.whl (21 kB)
Requirement already satisfied: urllib3==1.26.9 in c:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 43)) (1.26.9)
Requirement already satisfied: setuptools in c:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from arabic-reshaper==2.1.3->-r reqs.txt (line 1)) (62.1.0)
Collecting webencodings
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting tzdata
  Using cached tzdata-2022.1-py2.py3-none-any.whl (339 kB)
Collecting tqdm
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting reportlab
  Using cached reportlab-3.6.10.tar.gz (4.5 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [58 lines of output]
      Traceback (most recent call last):
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1346, in do_open
          h.request(req.get_method(), req.selector, req.data, headers,
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1285, in request
          self._send_request(method, url, body, headers, encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1331, in _send_request
          self.endheaders(body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1280, in endheaders
          self._send_output(message_body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1040, in _send_output
          self.send(msg)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 980, in send
          self.connect()
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1454, in connect
          self.sock = self._context.wrap_socket(self.sock,
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 500, in wrap_socket
          return self.sslsocket_class._create(
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1040, in _create
          self.do_handshake()
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1309, in do_handshake
          self._sslobj.do_handshake()
      ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "", line 2, in 
        File "", line 34, in 
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-guo14ucr\reportlab_b7348a6d8af347fe8e5825e319cfc368\setup.py", line 856, in 
          main()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-guo14ucr\reportlab_b7348a6d8af347fe8e5825e319cfc368\setup.py", line 743, in main
          target = ensureResourceStuff()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-guo14ucr\reportlab_b7348a6d8af347fe8e5825e319cfc368\setup.py", line 428, in ensureResourceStuff
          zipfile.ZipFile(url2data(url), 'r').extractall(path=target)
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-guo14ucr\reportlab_b7348a6d8af347fe8e5825e319cfc368\setup.py", line 407, in url2data
          remotehandle = ureq.urlopen(url)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 214, in urlopen
          return opener.open(url, data, timeout)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 517, in open
          response = self._open(req, data)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 534, in _open
          result = self._call_chain(self.handle_open, protocol, protocol +
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 494, in _call_chain
          result = func(*args)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1389, in https_open
          return self.do_open(http.client.HTTPSConnection, req,
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1349, in do_open
          raise URLError(err)
      urllib.error.URLError: 
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _rl_accel
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\rl_accel'
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _renderPM
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\renderPM'
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: will use package libart 2.3.21
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(env) C:\repository\docker\django\myproject>

How to Solve ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate Error Message

Actually, there are several steps and also several ways which is available for solving the error messages. In this case, those several ways including to modify the command by adding an additional parameter. But in the end, since there is nothing seems to be working at all, the final solution is to install and add a new python version. Before going in to that solution, the following is th compilation of trial and attempt for solving the problem.

Installing and even Updating the Local Certificate

Another attempt for solving the problem is by installing and also updating the local certicate. The idea for implementing this solution exist from another article exist in this link. In this case, the attempt is available by executing the following command in the Command Prompt :

(env) C:\repository\docker\django\myproject>pip install certifi
Requirement already satisfied: certifi in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (2022.5.18.1)

(env) C:\repository\docker\django\myproject>

(env) C:\repository\docker\django\myproject>pip install --upgrade certifi
Requirement already satisfied: certifi in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (2022.5.18.1)

(env) C:\repository\docker\django\myproject>

As exist in the above command execution, the library with the name of ‘certifi’ is already exist and it is also update. The following is the information about the certifi library :

(env) C:\repository\docker\django\myproject>pip_search certifi
                                                                 🐍 https://pypi.org/search/?q=certifi 🐍
┌───────────────────────────────────────────────┬────────────────┬────────────┬───────────────────────────────────────────────────────────────────────────────────────────┐
│ Package                                       │ Version        │ Released   │ Description                                                                               │
├───────────────────────────────────────────────┼────────────────┼────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
  📂 certifi                                     2022.5.18.1 ==   19-05-2022   Python package for providing Mozilla's CA Bundle.                                         

The last command above which is ‘pip_search certifi’ is just a command for searching the library along with the information of the library.

Disabling the SSL Certificate

After installing and even updating the certificate although it is just the Mozilla CA bundle and it is not working in the previous part, this part is different. It is also another trial attempt but the attempt is by disabling the SSL certificate. The following is the step to achieve it :

(env) C:\repository\docker\django\myproject>pip install -r reqs.txt config --global http.sslVerify=false
WARNING: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
Collecting config
  Using cached config-0.5.1.zip (90 kB)
  Preparing metadata (setup.py) ... done
Collecting arabic-reshaper==2.1.3
  Downloading arabic_reshaper-2.1.3.tar.gz (24 kB)
  Preparing metadata (setup.py) ... done
Collecting asgiref==3.5.0
  Downloading asgiref-3.5.0.tar.gz (31 kB)
  Preparing metadata (setup.py) ... done
Collecting certifi==2020.6.20
  Downloading certifi-2020.6.20.tar.gz (157 kB)
     ---------------------------------------- 158.0/158.0 kB 118.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: charset-normalizer==2.0.12 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 5)) (2.0.12)
Collecting click==8.0.3
  Downloading click-8.0.3.tar.gz (329 kB)
     ---------------------------------------- 329.0/329.0 kB 64.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting colorama==0.4.4
  Downloading colorama-0.4.4.tar.gz (27 kB)
  Preparing metadata (setup.py) ... done
Collecting cssselect2==0.5.0
  Downloading cssselect2-0.5.0.tar.gz (34 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting defusedxml==0.7.1
  Downloading defusedxml-0.7.1.tar.gz (75 kB)
     ---------------------------------------- 75.5/75.5 kB 56.4 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Django==4.0.2
  Downloading Django-4.0.2.tar.gz (10.0 MB)
     ---------------------------------------- 10.0/10.0 MB 195.4 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting flake8==4.0.1
  Downloading flake8-4.0.1.tar.gz (154 kB)
     ---------------------------------------- 154.9/154.9 kB 156.9 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting future==0.18.2
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting html5lib==1.1
  Downloading html5lib-1.1.tar.gz (272 kB)
     ---------------------------------------- 272.2/272.2 kB 76.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: idna==3.3 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 15)) (3.3)
Collecting ldap3==2.9.1
  Downloading ldap3-2.9.1.tar.gz (398 kB)
     ---------------------------------------- 398.8/398.8 kB 54.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting lxml==4.8.0
  Using cached lxml-4.8.0.tar.gz (3.2 MB)
  Preparing metadata (setup.py) ... done
Collecting mccabe==0.6.1
  Downloading mccabe-0.6.1.tar.gz (8.6 kB)
  Preparing metadata (setup.py) ... done
Collecting mypy-extensions==0.4.3
  Downloading mypy_extensions-0.4.3.tar.gz (4.3 kB)
  Preparing metadata (setup.py) ... done
Collecting oauthlib==3.2.0
  Downloading oauthlib-3.2.0.tar.gz (163 kB)
     ---------------------------------------- 163.8/163.8 kB 77.4 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pathspec==0.9.0
  Downloading pathspec-0.9.0.tar.gz (29 kB)
  Preparing metadata (setup.py) ... done
Collecting Pillow==9.0.1
  Using cached Pillow-9.0.1.tar.gz (49.5 MB)
  Preparing metadata (setup.py) ... done
Collecting platformdirs==2.5.1
  Downloading platformdirs-2.5.1.tar.gz (24 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyasn1==0.4.8
  Downloading pyasn1-0.4.8.tar.gz (146 kB)
     ---------------------------------------- 146.8/146.8 kB 74.1 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pycodestyle==2.8.0
  Downloading pycodestyle-2.8.0.tar.gz (102 kB)
     ---------------------------------------- 102.3/102.3 kB 93.6 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pycparser==2.21
  Downloading pycparser-2.21.tar.gz (170 kB)
     ---------------------------------------- 170.9/170.9 kB 91.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pyflakes==2.4.0
  Downloading pyflakes-2.4.0.tar.gz (69 kB)
     ---------------------------------------- 69.1/69.1 kB 89.7 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting PyJWT==2.3.0
  Downloading PyJWT-2.3.0.tar.gz (62 kB)
     ---------------------------------------- 62.3/62.3 kB 98.0 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting PyPDF3==1.0.6
  Using cached PyPDF3-1.0.6.tar.gz (294 kB)
  Preparing metadata (setup.py) ... done
Collecting python-bidi==0.4.2
  Downloading python-bidi-0.4.2.tar.gz (40 kB)
     ---------------------------------------- 40.4/40.4 kB 53.5 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting python3-openid==3.2.0
  Downloading python3-openid-3.2.0.tar.gz (305 kB)
     ---------------------------------------- 305.6/305.6 kB 69.3 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: requests==2.27.1 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 33)) (2.27.1)
Collecting requests-oauthlib==1.3.1
  Downloading requests-oauthlib-1.3.1.tar.gz (52 kB)
     ---------------------------------------- 52.0/52.0 kB 58.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting six==1.16.0
  Downloading six-1.16.0.tar.gz (34 kB)
  Preparing metadata (setup.py) ... done
Collecting spark-parser==1.8.9
  Downloading spark_parser-1.8.9.tar.gz (118 kB)
     ---------------------------------------- 118.3/118.3 kB 43.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting sqlparse==0.4.2
  Downloading sqlparse-0.4.2.tar.gz (67 kB)
     ---------------------------------------- 67.8/67.8 kB 65.7 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting svglib==1.2.1
  Using cached svglib-1.2.1.tar.gz (896 kB)
  Preparing metadata (setup.py) ... done
Collecting tinycss2==1.1.1
  Using cached tinycss2-1.1.1.tar.gz (65 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: urllib3==1.26.9 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 43)) (1.26.9)
Requirement already satisfied: setuptools in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from arabic-reshaper==2.1.3->-r reqs.txt (line 1)) (62.1.0)
Collecting webencodings
  Using cached webencodings-0.5.1.tar.gz (9.7 kB)
  Preparing metadata (setup.py) ... done
Collecting tzdata
  Downloading tzdata-2022.1.tar.gz (184 kB)
     ---------------------------------------- 184.8/184.8 kB 85.3 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tqdm
  Downloading tqdm-4.64.0.tar.gz (169 kB)
     ---------------------------------------- 169.5/169.5 kB 77.2 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting reportlab
  Using cached reportlab-3.6.10.tar.gz (4.5 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [58 lines of output]
      Traceback (most recent call last):
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1346, in do_open
          h.request(req.get_method(), req.selector, req.data, headers,
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1285, in request
          self._send_request(method, url, body, headers, encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1331, in _send_request
          self.endheaders(body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1280, in endheaders
          self._send_output(message_body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1040, in _send_output
          self.send(msg)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 980, in send
          self.connect()
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1454, in connect
          self.sock = self._context.wrap_socket(self.sock,
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 500, in wrap_socket
          return self.sslsocket_class._create(
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1040, in _create
          self.do_handshake()
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1309, in do_handshake
          self._sslobj.do_handshake()
      ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "", line 2, in 
        File "", line 34, in 
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-ncwepd9s\reportlab_0973e0a953d540e3a9beba29d10ac095\setup.py", line 856, in 
          main()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-ncwepd9s\reportlab_0973e0a953d540e3a9beba29d10ac095\setup.py", line 743, in main
          target = ensureResourceStuff()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-ncwepd9s\reportlab_0973e0a953d540e3a9beba29d10ac095\setup.py", line 428, in ensureResourceStuff
          zipfile.ZipFile(url2data(url), 'r').extractall(path=target)
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-ncwepd9s\reportlab_0973e0a953d540e3a9beba29d10ac095\setup.py", line 407, in url2data
          remotehandle = ureq.urlopen(url)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 214, in urlopen
          return opener.open(url, data, timeout)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 517, in open
          response = self._open(req, data)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 534, in _open
          result = self._call_chain(self.handle_open, protocol, protocol +
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 494, in _call_chain
          result = func(*args)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1389, in https_open
          return self.do_open(http.client.HTTPSConnection, req,
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1349, in do_open
          raise URLError(err)
      urllib.error.URLError: 
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _rl_accel
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\rl_accel'
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _renderPM
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\renderPM'
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: will use package libart 2.3.21
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(env) C:\repository\docker\django\myproject>

Apparently, it does not solve the problem at all. The error message is still appearing as in the output of the above command execution.

Using –no-cache parameter after ‘pip install’

Another attempt for the command modification with additional parameter is simply by using the ‘–no-cache’ parameter after the ‘pip install’ command as follows :

(env) C:\repository\docker\django\myproject>pip install -r reqs.txt --no-cache
Collecting arabic-reshaper==2.1.3
  Downloading arabic_reshaper-2.1.3-py3-none-any.whl (20 kB)
Collecting asgiref==3.5.0
  Downloading asgiref-3.5.0-py3-none-any.whl (22 kB)
Collecting certifi==2020.6.20
  Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
     ---------------------------------------- 156.6/156.6 kB 77.4 kB/s eta 0:00:00
Requirement already satisfied: charset-normalizer==2.0.12 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 5)) (2.0.12)
Collecting click==8.0.3
  Downloading click-8.0.3-py3-none-any.whl (97 kB)
     ---------------------------------------- 97.5/97.5 kB 78.7 kB/s eta 0:00:00
Collecting colorama==0.4.4
  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting cssselect2==0.5.0
  Downloading cssselect2-0.5.0-py3-none-any.whl (15 kB)
Collecting defusedxml==0.7.1
  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting Django==4.0.2
  Downloading Django-4.0.2-py3-none-any.whl (8.0 MB)
     ---------------------------------------- 8.0/8.0 MB 65.8 kB/s eta 0:00:00
Collecting flake8==4.0.1
  Downloading flake8-4.0.1-py2.py3-none-any.whl (64 kB)
     ---------------------------------------- 64.1/64.1 kB 67.6 kB/s eta 0:00:00
Collecting future==0.18.2
  Downloading future-0.18.2.tar.gz (829 kB)
     ---------------------------------------- 829.2/829.2 kB 86.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting html5lib==1.1
  Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
     ---------------------------------------- 112.2/112.2 kB 88.2 kB/s eta 0:00:00
Requirement already satisfied: idna==3.3 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 15)) (3.3)
Collecting ldap3==2.9.1
  Downloading ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
     ---------------------------------------- 432.2/432.2 kB 74.8 kB/s eta 0:00:00
Collecting lxml==4.8.0
  Downloading lxml-4.8.0.tar.gz (3.2 MB)
     ---------------------------------------- 3.2/3.2 MB 73.1 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting mccabe==0.6.1
  Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting mypy-extensions==0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting oauthlib==3.2.0
  Downloading oauthlib-3.2.0-py3-none-any.whl (151 kB)
     ---------------------------------------- 151.5/151.5 kB 80.0 kB/s eta 0:00:00
Collecting pathspec==0.9.0
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting Pillow==9.0.1
  Downloading Pillow-9.0.1.tar.gz (49.5 MB)
     ---------------------------------------- 49.5/49.5 MB 87.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting platformdirs==2.5.1
  Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Collecting pyasn1==0.4.8
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     ---------------------------------------- 77.1/77.1 kB 95.2 kB/s eta 0:00:00
Collecting pycodestyle==2.8.0
  Downloading pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
     ---------------------------------------- 42.1/42.1 kB 204.3 kB/s eta 0:00:00
Collecting pycparser==2.21
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ---------------------------------------- 118.7/118.7 kB 87.8 kB/s eta 0:00:00
Collecting pyflakes==2.4.0
  Downloading pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
     ---------------------------------------- 69.7/69.7 kB 115.5 kB/s eta 0:00:00
Collecting PyJWT==2.3.0
  Downloading PyJWT-2.3.0-py3-none-any.whl (16 kB)
Collecting PyPDF3==1.0.6
  Downloading PyPDF3-1.0.6.tar.gz (294 kB)
     ---------------------------------------- 294.8/294.8 kB 101.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting python-bidi==0.4.2
  Downloading python_bidi-0.4.2-py2.py3-none-any.whl (30 kB)
Collecting python3-openid==3.2.0
  Downloading python3_openid-3.2.0-py3-none-any.whl (133 kB)
     ---------------------------------------- 133.7/133.7 kB 86.8 kB/s eta 0:00:00
Requirement already satisfied: requests==2.27.1 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 33)) (2.27.1)
Collecting requests-oauthlib==1.3.1
  Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting six==1.16.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting spark-parser==1.8.9
  Downloading spark_parser-1.8.9-py3-none-any.whl (17 kB)
Collecting sqlparse==0.4.2
  Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
     ---------------------------------------- 42.3/42.3 kB 171.5 kB/s eta 0:00:00
Collecting svglib==1.2.1
  Downloading svglib-1.2.1.tar.gz (896 kB)
     ---------------------------------------- 897.0/897.0 kB 98.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting tinycss2==1.1.1
  Downloading tinycss2-1.1.1-py3-none-any.whl (21 kB)
Requirement already satisfied: urllib3==1.26.9 in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from -r reqs.txt (line 43)) (1.26.9)
Requirement already satisfied: setuptools in C:\repository\docker\django\myproject\env\lib\python3.9\site-packages (from arabic-reshaper==2.1.3->-r reqs.txt (line 1)) (62.1.0)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting tzdata
  Downloading tzdata-2022.1-py2.py3-none-any.whl (339 kB)
     ---------------------------------------- 339.5/339.5 kB 102.8 kB/s eta 0:00:00
Collecting tqdm
  Downloading tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
     ---------------------------------------- 78.4/78.4 kB 106.4 kB/s eta 0:00:00
Collecting reportlab
  Downloading reportlab-3.6.10.tar.gz (4.5 MB)
     ---------------------------------------- 4.5/4.5 MB 88.9 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [58 lines of output]
      Traceback (most recent call last):
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1346, in do_open
          h.request(req.get_method(), req.selector, req.data, headers,
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1285, in request
          self._send_request(method, url, body, headers, encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1331, in _send_request
          self.endheaders(body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1280, in endheaders
          self._send_output(message_body, encode_chunked=encode_chunked)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1040, in _send_output
          self.send(msg)
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 980, in send
          self.connect()
        File "C:\Program Files\Inkscape\lib\python3.9\http\client.py", line 1454, in connect
          self.sock = self._context.wrap_socket(self.sock,
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 500, in wrap_socket
          return self.sslsocket_class._create(
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1040, in _create
          self.do_handshake()
        File "C:\Program Files\Inkscape\lib\python3.9\ssl.py", line 1309, in do_handshake
          self._sslobj.do_handshake()
      ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "", line 2, in 
        File "", line 34, in 
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-fjqgn3s7\reportlab_97632fa5697e49b487a6dab3f8686678\setup.py", line 856, in 
          main()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-fjqgn3s7\reportlab_97632fa5697e49b487a6dab3f8686678\setup.py", line 743, in main
          target = ensureResourceStuff()
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-fjqgn3s7\reportlab_97632fa5697e49b487a6dab3f8686678\setup.py", line 428, in ensureResourceStuff
          zipfile.ZipFile(url2data(url), 'r').extractall(path=target)
        File "C:\Users\Personal\AppData\Local\Temp\pip-install-fjqgn3s7\reportlab_97632fa5697e49b487a6dab3f8686678\setup.py", line 407, in url2data
          remotehandle = ureq.urlopen(url)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 214, in urlopen
          return opener.open(url, data, timeout)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 517, in open
          response = self._open(req, data)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 534, in _open
          result = self._call_chain(self.handle_open, protocol, protocol +
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 494, in _call_chain
          result = func(*args)
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1389, in https_open
          return self.do_open(http.client.HTTPSConnection, req,
        File "C:\Program Files\Inkscape\lib\python3.9\urllib\request.py", line 1349, in do_open
          raise URLError(err)
      urllib.error.URLError: 
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _rl_accel
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\rl_accel'
      ##### setup-python-3.9.10-mingw_x86_64: ================================================
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: Attempting build of _renderPM
      ##### setup-python-3.9.10-mingw_x86_64: extensions from 'src\\rl_addons\\renderPM'
      ##### setup-python-3.9.10-mingw_x86_64: ===================================================
      ##### setup-python-3.9.10-mingw_x86_64: will use package libart 2.3.21
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(env) C:\repository\docker\django\myproject>

Change the python along with pip version

After all the trials and attempts in the above steps end in failure, this last step is the final one. It is the actual solution which is finally end in a different result. It is a success where the instalation of all of the libraries are continuing without any further error messages until the end. So, in order to perform the solution, there are several steps to do that :

  1. First of all, check the current active ‘pip’ tool :

    C:\Users\Personal>pip -V
    pip 22.1.2 from C:\Program Files\Inkscape\lib\python3.9\site-packages\pip (python 3.9)
    
    C:\Users\Personal>
    

    In order to check which python is available in the project, just get in to the project and activate the virtual python environment as follows :

    C:\Users\Personal> cd C:\repository\docker\django\myproject\env\bin
    C:\repository\docker\django\myproject\env\bin> activate
    (env) C:\repository\docker\django\myproject>python -V
    Python 3.9.10
    
    (env) C:\repository\docker\django\myproject\env\bin>
    

    In this case, the python has the version of ‘3.9.10’. Actually, this version is not the official version from the python itself. It is available from another application which in this example, it is available from Inkscape. So, install a new Python and look in this link as a reference. That link is an article with the title of ‘How to Install Python in Microsoft Windows 11’. Do not forget to add that new Python executable path in the environment variables of the system.

    Just look into this link for an additional information. In that link, there is an article with the title of ‘How to Add Executable Python Path in Microsoft Windows 11’. In case of the existing Python version available, in order to make the new one as a default one, try visit an article in this link. There is an article with the title of’How to Set Default Executable Python from Multiple Python available in Microsoft Windows’ in the link.

  2. After the installation of the new version of the Python, just check the version once more as follows :

    C:\repository\docker\django\myproject>python -V
    Python 3.10.5
    
    C:\repository\docker\django\myproject>
    
  3. Continue on further, just create the virtual python environment by executing the following command :

    C:\repository\docker\django\myproject>virtualenv --python "C:\users\Personal\AppData\Local\Programs\Python\Python310\python.exe" virtualenv
    created virtual environment CPython3.10.5.final.0-64 in 1257ms
      creator CPython3Windows(dest=C:\repository\docker\django\myproject\virtualenv, clear=False, no_vcs_ignore=False, global=False)
      seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Personal\AppData\Local\pypa\virtualenv)
        added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
      activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
    
    C:\repository\docker\django\myproject>
    
  4. After that, just go on to the python virtual environment and then activate it as follows :

    C:\repository\docker\django\myproject>cd virtualenv
    
    C:\repository\docker\django\myproject\virtualenv>dir
     Volume in drive C is Windows-SSD
     Volume Serial Number is CA30-19A4
    
     Directory of C:\repository\docker\django\myproject\virtualenv
    
    06/12/2022 01:33 PM <DIR> .
    06/12/2022 01:33 PM <DIR> ..
    06/12/2022 01:33 PM 42 .gitignore
    06/12/2022 01:33 PM <DIR> Lib
    06/12/2022 01:33 PM 434 pyvenv.cfg
    06/12/2022 01:33 PM <DIR> Scripts
    2 File(s) 476 bytes
    4 Dir(s) 139,783,331,840 bytes free
    C:\repository\docker\django\myproject\virtualenv>cd Scripts
    
    C:\repository\docker\django\myproject\virtualenv\Scripts>dir
    Volume in drive C is Windows-SSD
    Volume Serial Number is CA30-19A4
    
    Directory of C:\repository\docker\django\myproject\virtualenv\Scripts
    
    06/12/2022 01:33 PM <DIR> .
    06/12/2022 01:33 PM <DIR> ..
    06/12/2022 01:33 PM 2,168 activate
    06/12/2022 01:33 PM 1,008 activate.bat
    06/12/2022 01:33 PM 3,045 activate.fish
    06/12/2022 01:33 PM 2,609 activate.nu
    06/12/2022 01:33 PM 1,758 activate.ps1
    06/12/2022 01:33 PM 1,193 activate_this.py
    06/12/2022 01:33 PM 510 deactivate.bat
    06/12/2022 01:33 PM 682 deactivate.nu
    06/12/2022 01:33 PM 106,887 pip-3.10.exe
    06/12/2022 01:33 PM 106,887 pip.exe
    06/12/2022 01:33 PM 106,887 pip3.10.exe
    06/12/2022 01:33 PM 106,887 pip3.exe
    06/12/2022 01:33 PM 24 pydoc.bat
    06/12/2022 01:33 PM 264,176 python.exe
    06/12/2022 01:33 PM 252,912 pythonw.exe
    06/12/2022 01:33 PM 106,874 wheel-3.10.exe
    06/12/2022 01:33 PM 106,874 wheel.exe
    06/12/2022 01:33 PM 106,874 wheel3.10.exe
    06/12/2022 01:33 PM 106,874 wheel3.exe
    19 File(s) 1,385,129 bytes
    2 Dir(s) 139,783,249,920 bytes free
    
    C:\repository\docker\django\myproject\virtualenv\Scripts>activate
    
    (virtualenv) C:\repository\docker\django\myproject\virtualenv\Scripts>
    
  5. Soon after the activation of the virtual python environment is a success, go back the root folder of the project.

    (virtualenv) C:\repository\docker\django\myproject\virtualenv\Scripts>cd ..
    
    (virtualenv) C:\repository\docker\django\myproject\virtualenv>cd ..
    
    (virtualenv) C:\repository\docker\django\myproject\>dir
    Volume in drive C is Windows-SSD
    Volume Serial Number is CA30-19A4
    
    Directory of C:\repository\docker\django\myproject
    
    06/12/2022 01:13 PM <DIR> .
    06/12/2022 01:33 PM <DIR> ..
    06/08/2022 02:30 PM <DIR>         config 
    04/01/2022 05:08 PM       188,416 db.sqlite3 
    02/07/2022 09:35 AM           684 manage.py 
    04/01/2022 08:05 AM <DIR>         media 
    06/08/2022 02:30 PM <DIR>         modules 
    06/13/2022 09:15 AM           818 reqs.txt 
    06/08/2022 02:30 PM <DIR>         static 
    06/08/2022 02:31 PM <DIR>         templates 
    06/12/2022 01:13 PM <DIR>         virtualenv 
                  3 File(s) 189,918 bytes 
                  8 Dir(s) 138,646,548,480 bytes free 
    (virtualenv) C:\repository\docker\django\myproject>
    
  6. Finally, in the root folder of the project, just execute the ‘pip install’ command once more as exist below :

    (virtualenv) C:\repository\docker\django\myproject>pip install -r reqs.txt
    Collecting arabic-reshaper==2.1.3
    Using cached arabic_reshaper-2.1.3-py3-none-any.whl (20 kB)
    Collecting asgiref==3.5.0
    Using cached asgiref-3.5.0-py3-none-any.whl (22 kB)
    Collecting certifi==2020.6.20
    Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
    Collecting charset-normalizer==2.0.12
    Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
    Collecting click==8.0.3
    Using cached click-8.0.3-py3-none-any.whl (97 kB)
    Collecting colorama==0.4.4
    Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
    Collecting cssselect2==0.5.0
    Using cached cssselect2-0.5.0-py3-none-any.whl (15 kB)
    Collecting defusedxml==0.7.1
    Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
    Collecting Django==4.0.2
    Using cached Django-4.0.2-py3-none-any.whl (8.0 MB)
    Collecting flake8==4.0.1
    Using cached flake8-4.0.1-py2.py3-none-any.whl (64 kB)
    Collecting future==0.18.2
    Using cached future-0.18.2.tar.gz (829 kB)
    Preparing metadata (setup.py) ... done
    Collecting html5lib==1.1
    Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
    Collecting idna==3.3
    Using cached idna-3.3-py3-none-any.whl (61 kB)
    Collecting ldap3==2.9.1
    Using cached ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
    Collecting lxml==4.8.0
    Downloading lxml-4.8.0-cp310-cp310-win_amd64.whl (3.6 MB)
    ---------------------------------------- 3.6/3.6 MB 133.4 kB/s eta 0:00:00
    Collecting mccabe==0.6.1
    Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
    Collecting mypy-extensions==0.4.3
    Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
    Collecting oauthlib==3.2.0
    Using cached oauthlib-3.2.0-py3-none-any.whl (151 kB)
    Collecting pathspec==0.9.0
    Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
    Collecting Pillow==9.0.1
    Downloading Pillow-9.0.1-cp310-cp310-win_amd64.whl (3.2 MB)
    ---------------------------------------- 3.2/3.2 MB 130.0 kB/s eta 0:00:00
    Collecting platformdirs==2.5.1
    Using cached platformdirs-2.5.1-py3-none-any.whl (14 kB)
    Collecting pyasn1==0.4.8
    Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
    Collecting pycodestyle==2.8.0
    Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
    Collecting pycparser==2.21
    Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
    Collecting pyflakes==2.4.0
    Using cached pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
    Collecting PyJWT==2.3.0
    Using cached PyJWT-2.3.0-py3-none-any.whl (16 kB)
    Collecting PyPDF3==1.0.6
    Using cached PyPDF3-1.0.6.tar.gz (294 kB)
    Preparing metadata (setup.py) ... done
    Collecting python-bidi==0.4.2
    Using cached python_bidi-0.4.2-py2.py3-none-any.whl (30 kB)
    Collecting python3-openid==3.2.0
    Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
    Collecting requests==2.27.1
    Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
    Collecting requests-oauthlib==1.3.1
    Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
    Collecting six==1.16.0
    Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
    Collecting spark-parser==1.8.9
    Using cached spark_parser-1.8.9-py3-none-any.whl (17 kB)
    Collecting sqlparse==0.4.2
    Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
    Collecting svglib==1.2.1
    Using cached svglib-1.2.1.tar.gz (896 kB)
    Preparing metadata (setup.py) ... done
    Collecting tinycss2==1.1.1
    Using cached tinycss2-1.1.1-py3-none-any.whl (21 kB)
    Collecting urllib3==1.26.9
    Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
    Requirement already satisfied: setuptools in c:\repository\docker\django\myproject\virtualenv\lib\site-packages (from arabic-reshaper==2.1.3->-r reqs.txt (line 1)) (62.1.0)
    Collecting webencodings
    Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
    Collecting tzdata
    Using cached tzdata-2022.1-py2.py3-none-any.whl (339 kB)
    Collecting tqdm
    Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
    Collecting reportlab
    Downloading reportlab-3.6.10-cp310-cp310-win_amd64.whl (2.3 MB)
    ---------------------------------------- 2.3/2.3 MB 147.0 kB/s eta 0:00:00
    Building wheels for collected packages: future, PyPDF3, svglib
    Building wheel for future (setup.py) ... done
    Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=a09a848a49736f639ae2af0f9a288011eccdce99c5944167b62f67b981146f49
    Stored in directory: c:\users\personal\appdata\local\pip\cache\wheels\22\73\06\557dc4f4ef68179b9d763930d6eec26b88ed7c389b19588a1c
    Building wheel for PyPDF3 (setup.py) ... done
    Created wheel for PyPDF3: filename=PyPDF3-1.0.6-py3-none-any.whl size=62885 sha256=ddaded70f357f94d90587eab041c7a7317d6258de110328e3ddd6773c354da9e
    Stored in directory: c:\users\personal\appdata\local\pip\cache\wheels\9b\07\f7\3dc48062f8a7d831e488b065f096d2f936c4106e42863ab56f
    Building wheel for svglib (setup.py) ... done
    Created wheel for svglib: filename=svglib-1.2.1-py3-none-any.whl size=30265 sha256=b6ab87ff5a06b6502d3bf129a53671c7903f59116a3f00e0118c3547ae232bd3
    Stored in directory: c:\users\personal\appdata\local\pip\cache\wheels\57\df\7c\f298e1e2d3131795f689885c35e08a7e4f26a57e6b13df9817
    Successfully built future PyPDF3 svglib
    Installing collected packages: webencodings, pyasn1, mypy-extensions, mccabe, certifi, urllib3, tzdata, tinycss2, sqlparse, six, PyJWT, pyflakes, pycparser, pycodestyle, platformdirs, Pillow, pathspec, oauthlib, lxml, ldap3, idna, future, defusedxml, colorama, charset-normalizer, asgiref, tqdm, requests, reportlab, python3-openid, python-bidi, html5lib, flake8, Django, cssselect2, click, arabic-reshaper, svglib, spark-parser, requests-oauthlib, PyPDF3
    Successfully installed Django-4.0.2 Pillow-9.0.1 PyJWT-2.3.0 PyPDF3-1.0.6 arabic-reshaper-2.1.3 asgiref-3.5.0 certifi-2020.6.20 charset-normalizer-2.0.12 click-8.0.3 colorama-0.4.4 cssselect2-0.5.0 defusedxml-0.7.1 flake8-4.0.1 future-0.18.2 html5lib-1.1 idna-3.3 ldap3-2.9.1 lxml-4.8.0 mccabe-0.6.1 mypy-extensions-0.4.3 oauthlib-3.2.0 pathspec-0.9.0 platformdirs-2.5.1 pyasn1-0.4.8 pycodestyle-2.8.0 pycparser-2.21 pyflakes-2.4.0 python-bidi-0.4.2 python3-openid-3.2.0 reportlab-3.6.10 requests-2.27.1 requests-oauthlib-1.3.1 six-1.16.0 spark-parser-1.8.9 sqlparse-0.4.2 svglib-1.2.1 tinycss2-1.1.1 tqdm-4.64.0 tzdata-2022.1 urllib3-1.26.9 webencodings-0.5.1
    WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
    You should consider upgrading via the 'C:\repository\docker\django\myproject\virtualenv\Scripts\python.exe -m pip install --upgrade pip' command.
    
    (virtualenv) C:\repository\docker\django\myproject>python -m pip install --upgrade pip
    Requirement already satisfied: pip in c:\repository\docker\django\myproject\virtualenv\lib\site-packages (22.0.4)
    Collecting pip
    Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
    Successfully uninstalled pip-22.0.4
    Successfully installed pip-22.1.2
    
    (virtualenv) C:\repository\docker\django\myproject>

Finally, the attempt by changing the python version and recreating the python virtual environment to solve the problem is a success.

One thought on “How to Solve Error Message python setup.py egg_info did not run successfully ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129) when running pip install -r requirements.txt in Microsoft Windows

Leave a Reply