Installing python packages in JMP 19I 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.

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.
Automation and ScriptingRe: Installing python packages in JMP 19JMP/Python can be found in
C:\Users\__username___\AppData\Roaming\JMP\JMP\Python\Python313
Re: Installing python packages in JMP 19Have you tried installing from Python Script Editor?
import jmp
from jmputils import jpip
# update to latest version of pip and setuptools then install numpy & pandas
jpip('install', 'pandas')
Re: Installing python packages in JMP 19This python script updates jpip and installs pandas.<BR /><BR /><BR />import jmputils
jmputils.jpip('install --upgrade', 'pip setuptools')
jmputils.jpip('install', 'pandas')Re: Installing python packages in JMP 19That was my first try, but gives the same error:
ERROR: Can not perform a '--user' install. User site-packages are disabled for this Python.
Re: Installing python packages in JMP 19Some sort of issue related to this seems to be known, but not really sure if the "solution" is helpful (close and re-open JMP), Scripting Guide > Python > Install a Python Package > Avoiding Errors with Previously Installed Packages .
Last option that comes to my mind is to use command line with Python Create JPIP CMD(); or jmputils.create_jpip, Scripting Guide > Python > JSL-to-Python Interfaces > Install Python Packages using JSL .
@Paul_Nelson
Re: Installing python packages in JMP 19Your first suggestions seems to match what might be happening to me: pandas and numpy have been installed before on my JMP 18 installation on the same system. Maybe that is what is clashing now.
I think I will have to open a support case with JMP to get to the botton of this.
Thanks for all your help!
Re: Installing python packages in JMP 19There should be no conflict between JMP18's Python and JMP 19 Python site-packages. Python itself creates a Python versioned subdirectory. C:\Users\\AppData\Roaming\JMP\JMP\Python\Python313 for JMP 19, ...\Python311 for JMP 18.
Re: Installing python packages in JMP 19Yes, the JSL should use double quotes for the string instead of the single quotes. Not sure how that got past our automated tests.
Re: Installing python packages in JMP 19Then 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 19That could be a hint. I don't have such folders in my User folder, but it seems that such a Python folder is rather in my C:\Programs\JMP\... . Since I have no write rights into this folder, that might cause this error. What I am not sure about is why a) this worked for JMP 18 before (where I could initialize pandas and co) and the folders are the same (no User folder, Python sitting in the programs folder) and b) why it was installed there.
Re: Installing python packages in JMP 19You 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\\AppData\Roaming\JMP
Top of Python hierarchy:
C:\Users\\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
Re: Installing python packages in JMP 19Was this online support or the scripting index or both? It is something that needs to be fixed in the documentation.
Re: Installing python packages in JMP 19Only in the online support. I didn' t look in the scripting index.
Re: Installing python packages in JMP 19Perhaps 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 19Install 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.
Re: Installing python packages in JMP 19Hi Feli. If you do not see the AppData folder, make sure it is not "hidden". For Windows, in File Explorer, go to the View menu, then Show. There is an option called "Hidden items", it is not checked by default. Check this and then you should see the AppData folder and subfolders. Common issue for our JMP users.
https://support.microsoft.com/en-us/windows/file-explorer-in-windows-ef370130-1cca-9dc5-e0df-2f7416fe1cb1#:~:text=Open%20File%20Explorer%20from%20the%20taskbar.%20Select,items%20to%20view%20hidden%20files%20and%20folders.
Open File Explorer from the taskbar. Select View > Show, then select Hidden items to view hidden files and folders.
Re: Installing python packages in JMP 19The final solution in the end was that somewhere in my System environment variables, the PYTHONNOUSERSITE was set to 1 (probably from an earlier python installation). Setting this to 0 fixed the issue