# Python module error while running KERAS Network Learner node

**URL:** <https://forum.knime.com/t/python-module-error-while-running-keras-network-learner-node/72826>\
**Category:** KNIME Extensions\
**Tags:** keras, python, deep-learning\
**Created:** [September 21, 2023, 4:41am UTC](https://forum.knime.com/t/python-module-error-while-running-keras-network-learner-node/72826 "2023-09-21T04:41:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [September 21, 2023, 5:58am UTC](https://forum.knime.com/t/python-module-error-while-running-keras-network-learner-node/72826/2 "2023-09-21T05:58:23Z")

</div>

@nilotpalc as a quick hint you will have to set up the necessary Python packages in versions compatible with the current knime nodes

> [@Deep Learning with Keras and TensorFlow -- Troubleshooting](https://forum.knime.com/t/deep-learning-with-keras-and-tensorflow-troubleshooting/72130/2):
>
> @rrembert3 I think the current implementation of Keras and Tensorflow of KNIME would maybe need different settings. The setup can be tricky - you can extract what combination KNIME recommends and try to recreate that the best you can. My current solution is to [use different Python environments for Keras and Tensorflow](https://forum.knime.com/t/automl-all-models-post-process-component-failing/71586/18). But I have not worked on that for some time. So you will have to explore. I have some examples here:

> [@AttributeError: module ‘keras.optimizers’ has no attribute ‘Adam’](https://forum.knime.com/t/attributeerror-module-keras-optimizers-has-no-attribute-adam/38461/3):
>
> @akhtarameen as it happens I just have collected some example how to set up [Keras](https://hub.knime.com/search?tag=Keras&type=Workflow) and [Tensor Flow](https://hub.knime.com/search?tag=TensorFlow&type=Workflow) 2 (for classification tasks) with the help of the [Conda Environment propagation](https://kni.me/n/7HrPteTMsla4bZml). If you have a working [Miniconda](https://docs.conda.io/en/latest/miniconda.html) or Anaconda environment [configured in KNIME](https://docs.knime.com/latest/python_installation_guide/index.html#configure_python_integration) you should be able to just use the propagation and get a [working deep learning setup](https://docs.knime.com/latest/deep_learning_installation_guide/index.html#_introduction). You would then have to carefully check and plan what you want to d with the setup and what architecture you want to use. The setup in …

[https://docs.knime.com/latest/deep\_learning\_installation\_guide/index.html](https://docs.knime.com/latest/deep_learning_installation_guide/index.html)

---

_[View the full topic](https://forum.knime.com/t/python-module-error-while-running-keras-network-learner-node/72826)._
