diff --git a/docker/coder-ubuntu_22-python/Dockerfile b/docker/coder-ubuntu_22-python/Dockerfile
index 51e256c410cf19e59b767b6cbbae4933b07b6edf..d19b474dfb58b8e1371698515a5ced739bc975b6 100644
--- a/docker/coder-ubuntu_22-python/Dockerfile
+++ b/docker/coder-ubuntu_22-python/Dockerfile
@@ -8,7 +8,8 @@ RUN apt-get update && apt-get upgrade -y
 RUN apt-get install -y git wget curl
 
 # install python, pip and venv
-RUN apt-get install -y python3 python3-pip python3-venv
+# install python-dev and gcc for Cython
+RUN apt-get install -y python3 python3-pip python3-venv python3-dev gcc
 
 # install pipx
 ENV TZ=Europe/Berlin
diff --git a/docker/coder-ubuntu_24-python/Dockerfile b/docker/coder-ubuntu_24-python/Dockerfile
index 1e208d3ce5883fcade87cb31e7225c59b698e6ca..0da35145da681037e684bd692b72531ea3aeb27a 100644
--- a/docker/coder-ubuntu_24-python/Dockerfile
+++ b/docker/coder-ubuntu_24-python/Dockerfile
@@ -8,7 +8,8 @@ RUN apt-get update && apt-get upgrade -y
 RUN apt-get install -y git wget curl
 
 # install python, pip and venv
-RUN apt-get install -y python3 python3-pip python3-venv cython3
+# install python-dev and gcc for Cython
+RUN apt-get install -y python3 python3-pip python3-venv python3-dev gcc
 
 # install pipx
 ENV TZ=Europe/Berlin