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

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Feli
Level IV

Installing python packages in JMP 19

I was following the instructions in the online help to install python packages (pandas, numpy, ...) that I need for my scripts, but I am having trouble.

Feli_0-1762265297238.png

When I run 

Names Default To Here( 1 );
Python Install Packages( "pandas" );

(I needed to change to "" for it to work), I'm getting the error:

import jmputils
jmputils.jpip('install', 'pandas')
/*:
ERROR: Can not perform a '--user' install. User site-packages are disabled for this Python.

 

My guess is that the issue is that I would need admin rights to write to the windows folder where JMP sits, but I can't find anything in the help on how to solve this issue.

15 REPLIES 15
Feli
Level IV

Re: Installing python packages in JMP 19

Then you perhaps should change it in the online help ;) I was a bit stumped when a simple copy+paste threw errors until I changed the quotes.

Re: Installing python packages in JMP 19

Was this online support or the scripting index or both?  It is something that needs to be fixed in the documentation.  

Feli
Level IV

Re: Installing python packages in JMP 19

Only in the online support. I didn' t look in the scripting index.

Re: Installing python packages in JMP 19

You shouldn't need Admin rights.  The folder JMP tries to create is within your user roaming profile directory.  JMP itself tries write content into those folders, not just the Python site-packages directory.  If you don't have permissions, you will have more issues than just Python support.  Talk to your network admins on permissions and make sure they did not set a group policy turning off Python support.  JMP provides such a group policy setting..

Top of JMP hierarchy of folders

C:\Users\<userid>\AppData\Roaming\JMP

Top of Python hierarchy:

C:\Users\<userid>\AppData\Roaming\JMP\JMP\Python\

With sub-folder based on Python version 

C:\Users\panels\AppData\Roaming\JMP\JMP\Python\Python313    for JMP 19

C:\Users\panels\AppData\Roaming\JMP\JMP\Python\Python311    for JMP 18

Feli
Level IV

Re: Installing python packages in JMP 19

Perhaps my JMP 19 is getting confused since I need to install JMP using admin rights (and a temporary admin account). Since my local user doesn't have admin rights, maybe it now thinks that the admin user is my local user?


But I'm still not sure why everything was working perfectly fine in JMP 18 with exactly the same constellation?

Re: Installing python packages in JMP 19

Install as admin should be fine, but don't run JMP as admin especially first launch.  On launch of 19, jmp tries to build the site-packages directory if it does not already exist by unpacking the embedded site-packages.zip file to the correct location.

Recommended Articles