Hallo,
Ich habe gesehen, wie jemand erfolgreich Python und JMP mit einer Anaconda-Umgebung konfiguriert hat, die TensorFlow im folgenden Link enthält ( https://community.jmp.com/t5/Discussions/Integrating-JMP-with-Anaconda-Python-and-Tensorflow/mp/414717 ). Ich möchte dasselbe tun. Wenn ich jedoch die in diesem Link beschriebenen Schritte befolge, funktioniert es bei mir immer noch nicht. Ich denke, das liegt daran, dass ich eine neuere Version von JMP Pro verwende (ich habe JMP Pro 16.2).
Bisher habe ich die folgende JMP-Dokumentation und einige Ratschläge in anderen Foren-Threads ausprobiert. Folgende Sachen habe ich gemacht:
- überprüft, ob JMP, Python und Windows alle die gleichen Bits haben (sie sind alle 64 Bit)
- einstellen JMP_LIB_PYTHON_PATH nach C:\Users\xxxxxxxx\Anaconda3\envs\jmp_dl\python38.dll (zugänglich über Windows 10 Pro Control Panel > System > Advanced System Settings > Environment Variables)
- einstellen JMP_PYTHON_MODULE_PATH nach C:\Users\xxxxxxxx\Anaconda3\envs\jmp_dl\Lib (erreichbar wie oben)
Wenn ich den folgenden Code ausführe:
Names Default To Here( 1 );
Python Init(Init Trace("TRUE"));
Show(Python Get Version());
Python Term();Ich bekomme folgende Ausgabe:
C:\Users\xxxxxxxxx\Anaconda3\envs\jmp_dl\python38.dll
Starting JMP to Python interface initialization
AFTER:
/**********/
print(_JMPsys.path)
/**********/
['C:\\Users\\xxxxxxxxx\\Anaconda3\\envs\\jmp_dl\\Lib']
/**********/
# Import the numpy module for array and matrix support
import numpy as _JMPnp
/**********/
/**********/
# Import the pandas module for Series/Data Frame support
import pandas as _JMPpd
/**********/
/**********/
# Import the sqlite3 module for Series/Data Frame support
import sqlite3 as _JMPsq
/**********/
/**********/
# Import the matplotlib module for 2D plotting
import matplotlib as _JMPmpl
/**********/
/**********/
# Set matplot lib to use non-gui backend Agg.
_JMPmpl.use('Agg')
/**********/
/**********/
# Import the matplotlib.pyplot module for plots
import matplotlib.pyplot as _JMPpp
/**********/
Unable to import the 'numpy' Python module
in access or evaluation of 'Python Init' , Python Init/*###*/(Init Trace( "TRUE" ))
Unable to import the 'pandas' Python module
in access or evaluation of 'Python Init' , Python Init/*###*/(Init Trace( "TRUE" ))
Unable to import the 'sqlite3' Python module
in access or evaluation of 'Python Init' , Python Init/*###*/(Init Trace( "TRUE" ))
Unable to import the 'matplotlib' Python module
in access or evaluation of 'Python Init' , Python Init/*###*/(Init Trace( "TRUE" ))
at line 3 in C:\Users\xxxxxxxxxx\xxxxxxxx\Documents\python_code_for_jmp_1.jsl
Python Get Version() = {3, 8, 10, "final", 0};
0Wichtig zu beachten: Es findet die richtige Version von Python (3.8.10, die nur in dieser Anaconda-Umgebung verwendet wird).
Was es nicht findet, ist eines der Python-Module (matplotlib, numpy, pandas) oder sqlite3 usw.
Ich habe auch andere Dinge versucht, aber alle führen entweder zu 1) vollständigem Herunterfahren/Absturz von JMP Pro 16.2 oder 2) zu einer Art JMP Alert.
Kann mich bitte jemand durch den Prozess führen, meine Windows 10 Pro-Umgebungsvariablen so einzurichten, dass JMP Pro 16.2 nicht nur die richtige Python-Version findet, sondern auch alle Python-Module, die es benötigt.
Irgendwelche Ideen würden sehr geschätzt! Danke.