cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JMP Knowledge Base

Choose Language Hide Translation Bar
Error installing Python module: There was a problem confirming the SSL certificate.

When installing some Python packages via JMP, users might encounter the error below. The error occurs when attempting to access a package repository behind corporate firewalls.

 

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:1016)'))) skipping...

 

Solutions:

  1. Try upgrading PIP setuptools and adding the package certifi to the list of packages.
    jmputils.jpip('install --upgrade', 'pip setuptools certifi')​
  2. Have your IT whitelist the URL for the package repository so it can be accessed beyond the company firewall. 
  3. Try to install the package via the Windows Command Line using the trusted-host option. 
    "C:\Program Files\JMP\<JMPPRO|JMP>\<version#>\jmp_python.exe" -m pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user <module name>
    
    E.G., installing numpy within JMP Pro. "C:\Program Files\JMP\JMPPRO\18\jmp_python.exe" -m pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user numpy
    ​

Caution: Note that the third solution is insecure and can lead to other issues. Please evaluate with your IT department before considering this solution.

Details
Products JMP JMP Pro JMP Clinical

Recommended Articles