File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
tensorflow/training/docker/2.19/py3 Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -249,17 +249,11 @@ RUN apt-get update \
249249 && rm -rf /var/lib/apt/lists/* \
250250 && apt-get clean
251251
252- # https://github.com/yaml/pyyaml/issues/601
253- # PyYaml less than 6.0.1 failes to build with cython v3 and above.
254- # tf-models-official uses older versions, breaking the install.
255- # going to install the older pyyaml and cython to get tfd-models-official
256- # the sagemaker package will revert pyyaml back to 6 for its requirement
257- # and this is fine since sagemaker is more important than the models and
258- # the models still work on pyyaml 6 in this context.
252+ # Install wheel first, then pyyaml>=6.0.1 which has pre-built wheels
253+ # Note: pyyaml<6 is incompatible with setuptools>=81.0.0
259254RUN uv pip install --system --no-cache \
260255 wheel \
261- "cython<3" \
262- "pyyaml<6"
256+ "pyyaml>=6.0.1"
263257
264258# https://github.com/tensorflow/models/issues/9267
265259# tf-models does not respect existing installations of TF and always installs open source TF
Original file line number Diff line number Diff line change @@ -319,13 +319,11 @@ ARG TF_URL
319319# sagemaker-specific environment variable
320320ENV SAGEMAKER_TRAINING_MODULE sagemaker_tensorflow_container.training:main
321321
322- # https://github.com/yaml/pyyaml/issues/601
323- # PyYaml less than 6.0.1 failes to build with cython v3 and above.
324- # tf-models-official uses older versions, breaking the install.
322+ # Install wheel first, then pyyaml>=6.0.1 which has pre-built wheels
323+ # Note: pyyaml<6 is incompatible with setuptools>=81.0.0
325324RUN uv pip install --system --no-cache \
326325 wheel \
327- "cython<3" \
328- "pyyaml<6"
326+ "pyyaml>=6.0.1"
329327
330328# Pin numpy to 1.26.4
331329RUN uv pip install --system --no-cache "numpy==1.26.4"
You can’t perform that action at this time.
0 commit comments