diff --git a/centos/Dockerfile b/centos/Dockerfile
index fb92bc7de59597aba57d297fa51178fcb813345f..be3c73eb87d8b71ff525973453a1cea11d37e0c8 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -570,13 +570,6 @@ RUN yum install -y patchelf && \
     source /etc/profile && \
     make-python-portable.py /opt/python/3.8/bin/python3.8
 
-RUN /opt/python/3.8/bin/python3.8 -m pip --no-cache-dir install -U pip && \
-    /opt/python/3.8/bin/python3.8 -m pip --no-cache-dir install 'cryptography<3.4' && \
-    /opt/python/3.8/bin/python3.8 -m pip --no-cache-dir install \
-        PySide2==5.15.2 \
-        'numpy<1.22' \
-        h5py
-
 RUN tar -C /opt/python/3.8/ --numeric-owner --xattrs --xattrs-include='*' -cf /opt/python/python-3.8.tar .
 
 
@@ -602,11 +595,4 @@ RUN version=3.10.2 && \
 RUN source /etc/profile && \
     make-python-portable.py /opt/python/3.10/bin/python3.10
 
-RUN /opt/python/3.10/bin/python3.10 -m pip --no-cache-dir install -U pip && \
-    /opt/python/3.10/bin/python3.10 -m pip --no-cache-dir install 'cryptography<3.4' && \
-    /opt/python/3.10/bin/python3.10 -m pip --no-cache-dir install \
-        PySide2==5.15.2 \
-        'numpy<1.22' \
-        h5py
-
 RUN tar -C /opt/python/3.10/ --numeric-owner --xattrs --xattrs-include='*' -cf /opt/python/python-3.10.tar .