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
BrianzaFelix
Level I

problem with Python package installation

Hi,

I'm using JMP Pro 18.0.0; on my laptop, I can correctly open a Python script window, and update / install packages with :
import jmputils 
jmputils.jpip('list')   
jmputils.jpip('install --upgrade', 'pip setuptools')   
jmputils.jpip('install', 'pandas') 

But, when I tried the same on a different desktop computer, I get this error: 

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

This computer has internet connection.
I did some Google search, and it seems that it is a network and/or proxy issue.
Both computers are running WIndows 10 Enterprise.
Any advice or idea ?

thanks

3 REPLIES 3

Re: problem with Python package installation

JMP's jpip is just a wrapper on top of pip.  Do you / can you Install standalone Python.org Python3.11.x on your machine and try the same commands in pip.  If you succeed on both machines then there likely some environment variable related to the proxy.  But if pip doesn't work on the machine, you will need to get your network IT involved.  If pip can't connect, neither can JMP since it is just calling pip with the appropriate environment variables to ensure the packages wind up in JMP's site-packages/ directory.  JMP does pass environment variables through to the subprocess call to launch pip, so such variables 'should' already be passed through.  If you find you do need to pass specific variables through, you may need to modify the jmputils.py to add them into the subprocess call.  A copy of jmputils.py can be found in $SAMPLE_SCRIPTS/Python directory.

The file actually used is your python311.zip file which would have to be unpacked from the zip, edited and put back into the zip file for jmp to see it.  You could also rename the sample scripts one with your edits myJMPutils.py copy it to your site-packages, and do an something like

from myJMPutils import jpip

jpip('install','pandas')

 

BrianzaFelix
Level I

Re: problem with Python package installation

Thanks Paul_Nelson !
I was able to solve my problem with the help of our IT department.
Long story short, I copied the folder C:\Users\MyUserName\pip from my laptop (where jpip worked correctly) to the other computer that had the error, where that folder was missing.
The folder contains 2 files, one is pip.ini and the other should be a certificate (file extension is .pem).

About updating to latest JMP 18 release, I'll do that as soon as our IT makes it available for us.
Thanks again for your reply ! It contains useful information for me !

Re: problem with Python package installation

I would update to the latest JMP 18 maintenance release if possible as well.  You will gain security and bug fixes since the initial release.  There are some package installation improvements as well.  ( I believe the package install improvements went into 18.1.0 )

Recommended Articles