@@ -21,7 +21,7 @@ RUN cat /kaggle_requirements.txt >> /requirements.txt
2121
2222# Install uv & Kaggle packages
2323RUN curl -LsSf https://astral.sh /uv/install.sh | sh
24- RUN export PATH= " ${HOME}/.local/bin:${PATH}" && uv pip install --system -v - r /requirements.txt
24+ RUN export PATH= " ${HOME}/.local/bin:${PATH}" && uv pip install --system -r /requirements.txt
2525ENV PATH= " ~/.local/bin:${PATH}"
2626
2727# Install manual packages:
@@ -31,23 +31,26 @@ RUN uv pip uninstall --system google-cloud-bigquery-storage
3131# b/394382016: sigstore (dependency of kagglehub) requires a prerelease packages, installing separate.
3232RUN uv pip install --system --force-reinstall --prerelease= allow kagglehub[pandas-datasets,hf-datasets,signing]>= 0.3.9
3333
34- # google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1
35- # Keras 3.6 broke test_keras.py > test_train > keras.datasets.mnist.load_data ():
34+ # b/408284143: google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1
35+
36+ # b/408284435: Keras 3.6 broke test_keras.py > test_train > keras.datasets.mnist.load_data ()
3637# See https://github.com /keras-team/keras/commit/dcefb139863505d166dd1325066f329b3033d45a
38+ # Colab base is on Keras 3.8 , we have to install the package separately
3739RUN uv pip install --system google-cloud-automl== 1.0.1 google-cloud-aiplatform google-cloud-translate== 3.12.1 \
3840 google-cloud-videointelligence google-cloud-vision google-genai " keras<3.6"
3941
4042# uv cannot install this in requirements.txt without --no-build-isolation
4143# to avoid affecting the larger build, we'll post-install it.
4244RUN uv pip install --no-build-isolation --system " git+https://github.com/Kaggle/learntools"
4345
46+ # b/408281617: Torch is adamant that it can not install cudnn 9.3.x , only 9.1.x , but Tensorflow can only support 9.3.x.
47+ # This conflict causes a number of package downgrades, which are handled in this command
48+ RUN uv pip install --system --force-reinstall --extra-index -url https://pypi.nvidia.com pynvjitlink-cu12 cuml-cu12== 25.2.1 \
49+ nvidia-cudnn-cu12== 9.3.0.75 scipy tsfresh
50+
4451# b/385145217 Latest Colab lacks mkl numpy, install it.
4552RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org /intel/simple numpy
4653
47- # b/385145217 torch 2.4.x .
48- RUN uv pip install --system --force-reinstall --no-deps --extra-index -url= https://pypi.nvidia.com " cuml-cu12==25.2.1" " nvidia-cudnn-cu12==9.3.0.75"
49-
50- # b/328788268 We install an incompatible pair of libs (shapely<2, libpysal== 4.9.2 ) so we can't put this one in the requirements.txt
5154# newer daal4py requires tbb>= 2022, but libpysal is downgrading it for some reason
5255RUN uv pip install --system " tbb>=2022" " libpysal==4.9.2"
5356
0 commit comments