Python3 cannot be initialized

Any hints how to solve it.

Rhinocode_720:
Info 10/21/2025 13:04:06 [RhinoCode] Storage Site Registered: Local Drive (mcneel.eto.file)
Info 10/21/2025 13:04:06 [RhinoCode] Storage Site Registered: Rhino Files (mcneel.rhinoFiles.file)
Info 10/21/2025 13:04:06 [RhinoCode] Storage Site Registered: Web (mcneel.console.http)
Info 10/21/2025 13:04:06 [RhinoCode] Rhino3D Initialized on Windows - NETFramework
Info 10/21/2025 13:04:06 [RhinoCode] Platform Registered: Rhinoceros 3D @ 8.25.25287.14001 (mcneel.rhino3d.rhino)
Info 10/21/2025 13:04:06 [RhinoCode] Storage Site Registered: Rhino3D Project (mcneel.rhino3d.project)
Info 10/21/2025 13:04:06 [RhinoCode] Operating System: Microsoft Windows NT 10.0.22631.0
Info 10/21/2025 13:04:06 [RhinoCode] RhinoCode server starting on \.\pipe\rhinocode_remotepipe_720
Info 10/21/2025 13:05:08 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 10/21/2025 13:05:08 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 10/21/2025 13:05:08 [RhinoCode] Language Registered: Yaml 1.0 (rhinocode.builtin.yaml)
Info 10/21/2025 13:05:08 [RhinoCode] Language Registered: Git DotFile 1.0 (rhinocode.builtin.gitDotFile)
Info 10/21/2025 13:05:08 [RhinoCode] Language Loader Registered: mcneel.pythonnet.python@3.*
Info 10/21/2025 13:05:08 [RhinoCode] Language Loader Registered: mcneel.ironpython.python@2.*
Info 10/21/2025 13:05:08 [RhinoCode] Language Loader Registered: mcneel.roslyn.csharp@9.*
Info 10/21/2025 13:05:08 [RhinoCode] Language Loader Registered: mcneel.gh1.grasshopper@1.*
Info 10/21/2025 13:05:08 [RhinoCode] Language Loader Registered: mcneel.markdig.markdown@0.*
Info 10/21/2025 13:05:08 [RhinoCode] Language Registered: Python 3.9.10 (mcneel.pythonnet.python)
Info 10/21/2025 13:05:08 [RhinoCode] Initializing CPython 3.9.10/43 runtime
Info 10/21/2025 13:05:08 [RhinoCode] Configuring runtime@py39-rh8 for the first time on X64
Info 10/21/2025 13:05:08 [RhinoCode] Deploying CPython 3.9.10/43 runtime
Info 10/21/2025 13:05:08 [RhinoCode] Clearing exiting runtime
Info 10/21/2025 13:05:08 [RhinoCode] Successfully uninstalled existing runtime at C:\Users\FIMOHJ.rhinocode\py39-rh8
Info 10/21/2025 13:05:10 [RhinoCode] Installing pip (get-pip)
Info 10/21/2025 13:05:10 [RhinoCode] Running process: C:\Users\FIMOHJ.rhinocode\py39-rh8\python.exe -I get-pip.py --no-warn-script-location pip setuptools wheel
Error 10/21/2025 13:05:23 [RhinoCode] Process exited with code 1
Error 10/21/2025 13:05:23 [RhinoCode] Failed to install latest pip | Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))) - skipping

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/ERROR: Could not find a version that satisfies the requirement pip (from versions: none)ERROR: No matching distribution found for pip
Info 10/21/2025 13:05:23 [RhinoCode] Installing pip (embedded)
Info 10/21/2025 13:05:23 [RhinoCode] Running process: C:\Users\FIMOHJ.rhinocode\py39-rh8\python.exe -I get-pip.py --no-warn-script-location pip setuptools wheel pip-24.2-py3-none-any.whl setuptools-75.1.0-py3-none-any.whl wheel-0.44.0-py3-none-any.whl
Error 10/21/2025 13:05:33 [RhinoCode] Process exited with code 1
Error 10/21/2025 13:05:33 [RhinoCode] Failed to install pip from wheels | Processing c:\users\fimohj.rhinocode\py39-rh8\pip-24.2-py3-none-any.whl
Processing c:\users\fimohj.rhinocode\py39-rh8\setuptools-75.1.0-py3-none-any.whl
Processing c:\users\fimohj.rhinocode\py39-rh8\wheel-0.44.0-py3-none-any.whl
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))) - skipping

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’))’: /simple/pip/ERROR: Could not find a version that satisfies the requirement pip (from versions: none)ERROR: No matching distribution found for pip
Error 10/21/2025 13:05:33 [RhinoCode] Error Initializing Python | Error deploying CPython runtime | Failed to install pip (embedded)
at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.DeployCPythonRuntime(CPythonStartupSteps startup)
at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.<>c__DisplayClass117_0.b__0(Access access)
at Rhino.Runtime.Code.Languages.PythonNet.CPython`1.Start()

@ehsan - This looks like a certificate error?

I got the solution from the company’s IT helpdesk. I needed to download a separate “Netskope environment variables” package to set the variables and use the Netskope proxy certificate.