# python deep learning error — tensorflow version\<=2.0（Mac OS，M4）

**URL:** <https://forum.knime.com/t/python-deep-learning-error-tensorflow-version-2-0-mac-os-m4/90922>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [December 7, 2025, 12:57am UTC](https://forum.knime.com/t/python-deep-learning-error-tensorflow-version-2-0-mac-os-m4/90922 "2025-12-07T00:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guo\_Yafei](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/g/2acd7d/32.png) [@Guo\_Yafei](https://forum.knime.com/u/Guo_Yafei)\
**Post date:** [December 7, 2025, 12:57am UTC](https://forum.knime.com/t/python-deep-learning-error-tensorflow-version-2-0-mac-os-m4/90922/1 "2025-12-07T00:57:21Z")

</div>

![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/a/9a11de57c722e1a13f57cba72b28e39feb84760d.png)

new environment error

 ![ne w](https://forum-cdn.knime.com/uploads/default/original/3X/e/4/e4826dd97d1ed3c9ca76f9ea7947b8001b40687a.png)

**Subject:** Configuration Issue: “TensorFlow 2” Option Requires Version \<2.0? (macOS M4)

Hi,

I’m having a persistent issue setting up the **Python Deep Learning (Keras with TensorFlow 2)** integration on my **Apple Silicon Mac (M4 chip)** and believe there might be a configuration bug or validation logic issue.

**1. My Environment & Setup:**

- **Computer:** Mac with Apple Silicon M4.

- **KNIME Version:** 5.8

- **Python Management:** Miniconda (`conda 25.1.1`).

**2. What I Did (The Correct Path):**

1. In KNIME, I navigated to: `Preferences` → `KNIME` → `Python Deep Learning`.

2. I selected ✅ `Use special Deep Learning configuration`.

3. Under `Library used for the "DL Python"`, I chose `Keras` and made sure the sub-option ✅ `TensorFlow 2` was checked.

4. I set the configuration method to `Conda` and pointed it to an existing environment.

**3. The Core Problem (Contradictory Error):**  
The environment validation fails with a confusing error that **directly contradicts my selection** :

- It correctly detects that I have **TensorFlow 2.16.2** installed.

- However, it reports: `required minimum version is 1.0.0 (inclusive), required maximum version is 2.0.0 (exclusive)`.

**This is the key issue:** I explicitly selected “TensorFlow 2”, but the system is checking against the version range for the **legacy “Keras (TensorFlow 1)”** integration.

**4. What I Have Tried (And Failed):**

- **Manual Lower-Version Environment:** Created a Conda env with Python 3.8 to try installing older TensorFlow. This failed because pre-built packages for TF \<2.0 are not available for `osx-arm64`.

- **KNIME’s Auto-Create:** Clicking the `New environment...` button in the config panel also fails due to unresolvable dependencies for the Apple Silicon architecture.

**5. My Question / Suspected Bug:**  
Is this a known issue where the **wrong version validation logic is triggered** when the “TensorFlow 2” option is selected on macOS? The error message strongly suggests the backend is applying the checks for the old Keras integration, making it impossible to pass.

Any insights or workarounds would be greatly appreciated. Thank you!

---

<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:** [December 7, 2025, 7:08am UTC](https://forum.knime.com/t/python-deep-learning-error-tensorflow-version-2-0-mac-os-m4/90922/2 "2025-12-07T07:08:52Z")

</div>

@Guo_Yafei for Apple silicon there seems to be a workaround:

> [@Using tenserflow version 2](https://forum.knime.com/t/using-tenserflow-version-2/84346/3):
>
> Hello @Kyzzhibek, So apparently there is a workaround, but it is not well documented yet and it is in the process of being formally documented for the workaround. From looking at the documentation I believe you will need to do the steps below to create the conda environment: Download the text file: [knime\_dl\_mac.txt](https://forum.knime.com/uploads/short-url/nU46zlwoWlzVtSI2oLuTViP10US.txt) (10.3 KB) In terminal run the command below to create the env: conda create –name knime\_dl\_mac --file knime\_dl\_mac.txt Hope this helps, TL

Other than that has deep learning and knime always been a challenge. I wrote this article how to approach the problem.

[https://medium.com/low-code-for-advanced-data-science/knime-and-python-setting-up-deep-learning-environments-for-keras-and-tensorflow-4b66003858f4](https://medium.com/low-code-for-advanced-data-science/knime-and-python-setting-up-deep-learning-environments-for-keras-and-tensorflow-4b66003858f4)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [December 14, 2025, 1:50pm UTC](https://forum.knime.com/t/python-deep-learning-error-tensorflow-version-2-0-mac-os-m4/90922/3 "2025-12-14T13:50:30Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
