Skip to content

Commit

Permalink
Fix package versions in Dockerfile
Browse files Browse the repository at this point in the history
Tensorflow2 conflicts with numpy 1.20.1
  • Loading branch information
chongxiaoc committed Aug 17, 2021
1 parent 9f30108 commit abb1909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN /petastorm_venv3.7/bin/pip3.7 install --no-cache scikit-build
RUN /petastorm_venv3.7/bin/pip3.7 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] --only-binary pyarrow --only-binary opencv-python
RUN /petastorm_venv3.7/bin/pip3.7 uninstall -y petastorm
# To avoid some version incompatibilities, we pin these libraries to versions that known to work together
RUN /petastorm_venv3.7/bin/pip3.7 install -U pyarrow==3.0.0 numpy==1.20.1 tensorflow==2.1.0 pyspark==3.0.0
RUN /petastorm_venv3.7/bin/pip3.7 install -U pyarrow==3.0.0 numpy==1.19.1 tensorflow==2.1.0 pyspark==3.0.0

# Otherwise we might have trouble with loading of libGL.so.1
RUN /petastorm_venv3.7/bin/pip3.7 install opencv-python-headless
Expand All @@ -58,7 +58,7 @@ RUN /petastorm_venv3.9/bin/pip3.9 install --no-cache scikit-build
RUN /petastorm_venv3.9/bin/pip3.9 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] --only-binary pyarrow --only-binary opencv-python
RUN /petastorm_venv3.9/bin/pip3.9 uninstall -y petastorm
# To avoid some version incompatibilities, we pin these libraries to versions that known to work together
RUN /petastorm_venv3.9/bin/pip3.9 install -U pyarrow==3.0.0 numpy==1.20.1 tensorflow==2.5.0 pyspark==3.0.0
RUN /petastorm_venv3.9/bin/pip3.9 install -U pyarrow==3.0.0 numpy==1.19.3 tensorflow==2.5.0 pyspark==3.0.0

# Otherwise we might have trouble with loading of libGL.so.1
RUN /petastorm_venv3.9/bin/pip3.9 install opencv-python-headless
Expand Down

0 comments on commit abb1909

Please sign in to comment.