1.
JMP reads the Path() option that is specified in the Python Init() or Python Connect() function call.
3.
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.
4.
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:
1.
Select Start > Control Panel > System > Advanced system settings.
2.
Click Environment Variables.
4.
Type PYTHONINSTALLPATH for the Variable name.
5.
Type the path to the Python<version>.dll file, for example:
C:/Program Files/Python/<version>/Python<version>.dll
6.
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(
"PYTHONSYSPATH",
	"\[{ "", "/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']
0

Help created on 1/2/2019