Configuring Python Environment for KNIME Without Anaconda

Hi there,

Due to company restrictions, we are unable to use Anaconda for our Python environments. Is it possible to configure a Python environment for KNIME using only Python or PyCharm?

We are looking for alternative methods to set up and manage our Python environments without relying on Conda. Specifically, we need to integrate deep learning frameworks such as TensorFlow and Keras. Any guidance or suggestions on how to achieve this would be greatly appreciated.

Thank you!

Hey there,

I think you should be able to define your own Python environment w/o using conda, by selecting “Manual” option.

I think the environment you select must be set up in a certain way and include certain packages…

This is referenced in the documentation here:

https://docs.knime.com/latest/python_installation_guide/#no-conda-envs

2 Likes

Thanks,
i still got the message Library imp is missing, i searched online and i saw that the module the imp module is deprecated "DeprecationWarning: "

Hi @Rhalem_c137 ,

I have my python environment set up using manual config, without using conda, BUT I hit the same problem as you if I installed python 3.12.x. I didn’t need the latest python, so I instead installed python 3.11.

The imp module was deprecated (in Python 3.4 I think I read), but was removed entirely in 3.12.

Do you definitely need 3.12? I have managed to install 3.11 ok, because it still contains the deprecated imp module.

Which version of KNIME are you using?

I think that manually installing python up to 3.11 is possible, although there may be some workaround I am unaware of for python 3.12.

Depending on your version of KNIME, I think you would probably also want to install the KNIME Python Integration extension (if available)
i.e.

If you are able to downgrade to Python 3.11 or earlier, take a look at the following post and see if it helps, as this describes the steps I used to manually configure Python and install the required modules as detailed in the Python extensions guide.

At the time of writing that post, I think I was using Python 3.9 with KNIME 5.2.3.

I just tried it with Python 3.11 on a KNIME 5.3.3 installation (where I also have the python integration extension installed) and it works.

3 Likes