Hi! I’m excited to get started with Deep learning in Knime however I have come to an issue when linking Knime to the Python executable. I followed the instructions as outlined here: (https://www.knime.com/blog/setting-up-the-knime-python-extension-revisited-for-python-30-and-20)
I installed the latest version of Knime (3.7.0 - with python extension 3.7) and Anaconda ( 5.3.1- with python 3.7). From the anaconda cmd prompt, I create a new environment using the command:
conda create -y -n py35_knime python=3.5 numpy jedi pandas keras
Please note, I create a Python 3.5 environment because Anaconda will not let me install keras with Python 3.7. In anaconda i get the error:
UnsatisfiableError: The following specifications were found to be in conflict:
-keras -> python[version=’>=3.5,<3.6.0a0’]
The python 3.5 environment is created just fine. I can see the list of installed components in the anaconda cmd (numpy=1.15.4, pandas=0.23.4, keras=2.2.4). It resides here :“C:\Tools\Anaconda3\envs\py35_knime”
I then create a .bat file with script:
@REM Adapt the directory in the PATH to your system
@CALL activate py35_knime || ECHO Activating py35_knime failed
Now here’s the problem:
In Knime, when I go to File>preferences>python and set the Python 3 to my .bat file, I get an error which reads “Python Installation could not be determined”
So I tried to troubleshoot
- If I execute the .bat file outside of Knime, it launches Python 3.5 just fine.
- In Knime Python preferences, if I set the path directly to the Python .exe in the main Anaconda folder, it recognizes Python 3.7 but says numpy and pandas is missing
- If I create a Python 3.7 environment from Anaconda including numpy and pandas components, I can link to the python.exe in the new envs folder from Knime preference but the error for missing numpy and panda persists
- If I change my .bat file to activate the base anaconda python install, the link this path in knime, I get the error of “Python Installation could not be determined”. Again executing the .bat outside of knime launches the expected version.
I’m at a loss. Can someone help me get Python, Numpy, Pandas, and Keras installed and linked to Knime 3.7
Thank you very much.