@@ -43,9 +43,6 @@ RUN uv pip install \
4343 " nvidia-nvjitlink-cu12==12.5.82"
4444RUN uv pip install --system --force-reinstall " pynvjitlink-cu12==0.5.2"
4545
46- # b/385145217 Latest Colab lacks mkl numpy, install it.
47- RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org /intel/simple numpy
48-
4946# newer daal4py requires tbb>= 2022, but libpysal is downgrading it for some reason
5047RUN uv pip install --system " tbb>=2022" " libpysal==4.9.2"
5148
@@ -59,7 +56,7 @@ ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
5956ADD patches/template_conf.json /opt/kaggle/conf.json
6057
6158# /opt/conda/lib/python3.11 /site-packages
62- ARG PACKAGE_PATH= /usr/local/lib/python3.11 /dist-packages
59+ ARG PACKAGE_PATH= /usr/local/lib/python3.12 /dist-packages
6360
6461# Install GPU-specific non-pip packages.
6562{{ if eq .Accelerator " gpu" }}
@@ -86,28 +83,6 @@ ADD patches/keras_internal.py \
8683RUN apt-get install -y libfreetype6-dev && \
8784 apt-get install -y libglib2.0 -0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing
8885
89- # NLTK Project datasets
90- # b/408298750: We currently reinstall the package, because we get the following error:
91- # ` AttributeError: module 'inspect' has no attribute 'formatargspec'. Did you mean: 'formatargvalues'?`
92- RUN uv pip install --system --force-reinstall " nltk>=3.9.1"
93- RUN mkdir -p /usr/share/nltk_data && \
94- # NLTK Downloader no longer continues smoothly after an error, so we explicitly list
95- # the corpuses that work
96- python -m nltk.downloader -d /usr/share/nltk_data abc alpino averaged_perceptron_tagger \
97- basque_grammars biocreative_ppi bllip_wsj_no_aux \
98- book_grammars brown brown_tei cess_cat cess_esp chat80 city_database cmudict \
99- comtrans conll2000 conll2002 conll2007 crubadan dependency_treebank \
100- europarl_raw floresta gazetteers genesis gutenberg \
101- ieer inaugural indian jeita kimmo knbc large_grammars lin_thesaurus mac_morpho machado \
102- masc_tagged maxent_ne_chunker maxent_treebank_pos_tagger moses_sample movie_reviews \
103- mte_teip5 names nps_chat omw opinion_lexicon paradigms \
104- pil pl196x porter_test ppattach problem_reports product_reviews_1 product_reviews_2 propbank \
105- pros_cons ptb punkt punkt_tab qc reuters rslp rte sample_grammars semcor senseval sentence_polarity \
106- sentiwordnet shakespeare sinica_treebank smultron snowball_data spanish_grammars \
107- state_union stopwords subjectivity swadesh switchboard tagsets timit toolbox treebank \
108- twitter_samples udhr2 udhr unicode_samples universal_tagset universal_treebanks_v20 \
109- vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe
110-
11186RUN apt-get install -y git-lfs && \
11287 # vtk dependencies
11388 apt-get install -y libgl1-mesa-glx && \
0 commit comments