I'm working to integrate an Anaconda environment of Python 3.8.11 with JMP to leverage Tensorflow with JMP.
I've been successful integrating JMP and the Anaconda environment and was able to verify operation of some typical machine learning packages installed in that environment. I have been unsuccessful in importing Tensorflow. Please see the attached code.
Names Default To Here( 1 );
Python Init(
Path( "C:\ProgramData\Anaconda3\envs\JMP ML\python38.dll" ),
Python Sys Path(
{"",
"C:\\ProgramData\\Anaconda3\\envs\\JMP ML\\DLLs",
"C:\\ProgramData\\Anaconda3\\envs\\JMP ML\\lib",
"C:\\ProgramData\\Anaconda3\\envs\\JMP ML\\libs",
"C:\\ProgramData\\Anaconda3\\envs\\JMP ML",
"C:\\ProgramData\\Anaconda3\\envs\\JMP ML\\lib\\site-packages"
}
)
);
Show( Python Get Version() );
Python Submit( "\[
import pandas as pd
print("Pandas Version: ", pd.__version__)
import numpy as np
print("NumPy Version: ", np.__version__)
import scipy
print("SciPy Version: ", scipy.__version__)
]\");
Python Submit( "\[
import tensorflow as tf
print(tf.__version__)
]\");
Python Term();The above produces the following output in my embedded log:
Python Get Version() = {3, 8, 11, "final", 0};
Pandas Version: 1.3.2
NumPy Version: 1.20.3
SciPy Version: 1.6.2
/**********/
import tensorflow as tf
print(tf.__version__)
/**********/
0When I add the statement: import tensorflow as tf
...to the first instance of Python Submit, it produces results similar to the second instance of Python Submit in that it appears that the python code is just printed into the embedded log. I've verified that indeed I do have tensorflow installed in the environment I'm referencing. I have also tested other packages installed in that environment and some produce the correct results while others produce what I'm calling the printed (non-functional) output.
Any ideas as to why tensorflow is not being imported correctly? I have a ticket in with support but was curious if the community might be able to help.
Thank you in advance for any suggestions/insights.