JMP reads the Path() option that is specified in the Python Init() or Python Connect() function call.
If a Python installation cannot be found using the Windows registry, JMP looks up the PYTHONINSTALLPATH environment variable. If the environment variable is a valid Windows path, that path will be used to load the appropriate Python DLLs.
If the PYTHONINSTALLPATH environment variable does not exist or has an invalid path, an error message appears stating that an installation of Python could not be found.
Typically, JMP determines the PYTHONHOME environment variable automatically if it is defined in the Windows registry.
<root> is either the root key HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER depending on where and how you installed Python. <version> is the Python version number.
Use the Path("path to an installed Python DLL or shared library") argument with the Python Init() or Python Connect() function.
Define the PYTHONINSTALLPATH environment variable using either of the following two methods:
Select Start > Control Panel > System > Advanced system settings.
Click Environment Variables.
Type PYTHONINSTALLPATH for the Variable name.
Type the path to the Python<version>.dll file, for example:
C:/Program Files/Python/<version>/Python<version>.dll
Click OK and click OK again to close the System Properties window.
Create the variable using the Set Environment Variable() function:
Set Environment Variable( "PYTHONINSTALLPATH", "C:/Program Files/Python/Python36/Python36.dll" );
MDz320:~ shlori$ python --version
Python 3.6.4 :: Anaconda, Inc.
MDz320~ shlori$ python3
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
[’’, ’/anaconda3/lib/python36.zip’, ’/anaconda3/lib/python3.6’, ’/anaconda3/lib/python3.6/lib-dynload’, ’/anaconda3/lib/python3.6/site-packages’, ’/anaconda3/lib/python3.6/site-packages/aeosa’]
Set Environment Variable(
	"\[{ "", "/anaconda3/lib/python36.zip", "/anaconda3/lib/python3.6",
        "/anaconda3/lib/python3.6/lib-dynload", "/anaconda3/lib/python3.6/site-packages",
        "/anaconda3/lib/python3.6/site-packages/aeos" }]\"
Python Init();
Python Submit( "\[basket = ['apple', 'orange', 'pear']
print(basket)]\" );
Python Term();
['apple', 'orange', 'pear']

Help created on 1/2/2019