Ciao,
Ho visto qualcuno riuscire a configurare Python e JMP usando un ambiente Anaconda che contiene TensorFlow nel seguente link ( https://community.jmp.com/t5/Discussions/Integrating-JMP-with-Anaconda-Python-and-Tensorflow/mp/414717 ). Voglio fare la stessa cosa. Tuttavia, se seguo i passaggi descritti in quel collegamento, non funziona ancora per me. Penso che ciò sia dovuto al fatto che sto usando una versione più recente di JMP Pro (ho JMP Pro 16.2).
Finora, ho provato a seguire la documentazione di JMP e alcuni consigli in altri thread del forum. Ho fatto le seguenti cose:
- verificato che JMP, Python e Windows abbiano tutti gli stessi bit (sono tutti a 64 bit)
- impostare JMP_LIB_PYTHON_PATH a C:\Utenti\xxxxxxxx\Anaconda3\envs\jmp_dl\python38.dll (accessibile tramite il Pannello di controllo di Windows 10 Pro > Sistema > Impostazioni di sistema avanzate > Variabili d'ambiente)
- impostare JMP_PYTHON_MODULE_PATH a C:\Users\xxxxxxxx\Anaconda3\envs\jmp_dl\Lib (accessibile come sopra)
Quando eseguo il seguente codice:
Names Default To Here( 1 );
Python Init(Init Trace("TRUE"));
Show(Python Get Version());
Python Term();Ottengo il seguente output:
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};
0Cosa importante da notare: sta trovando la versione corretta di Python (3.8.10, che è usata solo in quell'ambiente Anaconda).
Quello che non trova è nessuno dei moduli Python (matplotlib, numpy, pandas) o sqlite3 ecc.
Ho provato a fare anche altre cose, ma tutte risultano in 1) completo spegnimento/arresto anomalo di JMP Pro 16.2 o 2) una sorta di avviso JMP.
Qualcuno può guidarmi attraverso il processo di configurazione delle variabili di ambiente di Windows 10 Pro in modo tale che JMP Pro 16.2 trovi non solo la versione Python corretta, ma anche tutti i moduli Python di cui ha bisogno.
Tutte le idee sarebbero molto apprezzate! Grazie.