cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
BHKReddy
Level II

Python Access Issue while installing Packages

Hello JMP Community,

 

Recently started using JMP and tried to access the Python and while installing the python packages, I am getting error like below.

Any support in resolving the below error is much appreciated. Refer below image along with code used and error.

 

Thank you

 

 

image.png

 

 

10 REPLIES 10
jthi
Super User

Re: Python Access Issue while installing Packages

Have you tried updating pip JMP is using?

 

Example from scripting index

import jmp

import jmputils
# update to latest version of pip and setuptools then install numpy & pandas
jmputils.jpip('install --upgrade', 'pip setuptools')
jmputils.jpip('install', 'numpy')
-Jarmo

Re: Python Access Issue while installing Packages

I would also add the packager certifi to the list of packages.

 

jmputils.jpip('install --upgrade', 'pip setuptools certifi')

 

What version of JMP are you running?

BHKReddy
Level II

Re: Python Access Issue while installing Packages

Thank you both @jthi  and @Paul_Nelson for the prompt response.

 

I am using JMP version 18.2.1,

 

I have tried both options suggested above and still it shows similar error i guess or is it corrected?. Pls. refer below screen shot of the log.

 

BHKReddy_1-1750657429876.png

 

 

jthi
Super User

Re: Python Access Issue while installing Packages

Are you able to run pip outside of JMP? Could you possibly have some settings made by company IT to prevent accessing the hosts required by pip (firewall rules/network configuration)?

-Jarmo
BHKReddy
Level II

Re: Python Access Issue while installing Packages

@jthi Yes, it appears internal Firewall is blocking to download the tools. So, I had discussion with IT team, for which IT mentioned to have list of sites which can be whitelisted as part security clearance with any SOP from vendor side. IT team mentioned to get the things from JMP like any kind of SOP for security clearance which contains list of sites to be cleared for usage. I am not sure how I can get this as Python uses extensive list of packages. So any advice or suggestions further? or should connect with JMP Tech support team on this?

 

@Mark_Zwald I am able to access the link https://pypi.org/simple/pip/ in web browser but when I tried to open and download tar file it is showing internal IT blocking msg.

 

BHKReddy_0-1750676770103.png

 

jthi
Super User

Re: Python Access Issue while installing Packages

I think that is something you will have to solve with your IT. You can of course contact JMP Support and see if they can provide any assistance with this, but I don't think they can do really that much. JMP just comes with specific Python version installed and most likely security checks have been done on that version and the packages it comes with. And jpip is just a wrapper for pip.

 

How are you handling Python packages overall at your company? You just don't use Python if it requires external packages? There are many ways you can go with this:

  • Check the Python codes yourself and manage your own package repo which you can take responsibility of (and hope IT agrees to this)
  • Use Python packages which have been verified by someone else. For example, I think Anaconda's paid solution (Business) could be used for this, but it could require some extra work to get working with JMP
  • Giving access to required paths package by package
-Jarmo

Re: Python Access Issue while installing Packages

Anaconda is not going to work, they compile their modules differently with respect to library relative paths.  

 

https://pypi.org/

 

Would be the most prominent site to ensure you have access via pip.  

 

If you have a proxy server in the way, you may also need to have your corporate SSL certificates installed where Python can find them.  Many companies proxy servers use local certificates and unencrypt your SSL connection between your machine and the proxy to inspect the http traffic then use their certificates to reencrypt to the site.  Corporate man-in-the-middle.  This may also be causing issues especially if the corporate certificates are self-signed rather than purchased.  Hence not being able to validate a certificate chain. 

 

If you can't install packages from the command line ( say you have installed Python 3.11.x and just use pip ), the JMP won't have any better luck.  JMP's jpip is just a wrapper over Python's pip to ensure that installed packages go into JMP's isolated environment.  If they don't prevent flash drive usage, you could create your own site-packages directory on another machine say home computer using Python 3.11.x for JMP 18, or 3.13.x for JMP 19EA.  Then replace your %APPDATA%\JMP\JMP\...\site-packages directory with the one you have created.  

 

This is also the way to 'cheat your way' to virtual environments for JMP 18 and 19.  Swap between saved site-packages directories and restart JMP.

Re: Python Access Issue while installing Packages

Make sure you are able to access this site: https://pypi.org/simple/pip/

That seems to be the issue from the error message.

cgoggin
Level I

Re: Python Access Issue while installing Packages

In my case, I was getting the same error code and the issue was similar to what Paul_Nelson described.  I needed to get a Zscaler (corporate IT security program) certificate and add it to the cert file being used by the JMP Python installation.  

Adding Custom Certificate to an Application-Specific Trust Store | Zscaler


Recommended Articles