@@ -115,7 +115,7 @@ RUN mamba install -c pytorch magma-cuda${CUDA_MAJOR_VERSION}${CUDA_MINOR_VERSION
115
115
# b/255757999 openmp (libomp.so) is an dependency of libtorchtext and libtorchaudio but
116
116
# the built from source versions don't seem to properly link it in. This forces the dep
117
117
# which makes sure that libomp is loaded when these libraries are loaded.
118
- pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113 && \
118
+ pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 torchtext==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu113 && \
119
119
#pip install patchelf && \
120
120
#patchelf --add-needed libomp.so /opt/conda/lib/python3.7/site-packages/torchtext/lib/libtorchtext.so && \
121
121
#patchelf --add-needed libomp.so /opt/conda/lib/python3.7/site-packages/torchaudio/lib/libtorchaudio.so && \
@@ -195,8 +195,9 @@ RUN pip install pysal \
195
195
apt-get install -y default-jre-headless && \
196
196
pip install -f https://h2o-release.s3.amazonaws.com/h2o/latest_stable_Py.html h2o \
197
197
"tensorflow-gcs-config<=${TENSORFLOW_VERSION}" \
198
- tensorflow-addons==0.17.1 \
199
- tensorflow_decision_forests==0.2.7 && \
198
+ "tensorflow==${TENSORFLOW_VERSION}" \
199
+ tensorflow-addons \
200
+ tensorflow_decision_forests && \
200
201
/tmp/clean-layer.sh
201
202
202
203
RUN apt-get install -y libfreetype6-dev && \
@@ -374,25 +375,30 @@ RUN pip install tensorpack && \
374
375
memory_profiler && \
375
376
/tmp/clean-layer.sh
376
377
378
+
379
+
380
+
381
+ # Remove files that can't be uninstalled normally:
382
+ RUN rm /opt/conda/lib/python3.7/site-packages/google*/REQUESTED
383
+ RUN rm /opt/conda/lib/python3.7/site-packages/google*/direct_url.json
384
+ # google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1
385
+ RUN pip install google-cloud-automl==1.0.1 \
386
+ google-api-core==1.33.2 \
387
+ google-cloud-bigquery==2.2.0 \
388
+ google-cloud-storage \
389
+ google-cloud-translate==3.* \
390
+ google-cloud-language==2.* \
391
+ google-cloud-videointelligence==2.* \
392
+ google-cloud-vision==2.* \
393
+ pip install protobuf==3.20.3
377
394
# install cython & cysignals before pyfasttext
378
- RUN rm /opt/conda/lib/python3.7/site-packages/*/direct_url.json
379
395
RUN pip install cython \
380
396
cysignals \
381
397
pyfasttext \
382
398
fasttext && \
383
399
apt-get install -y libhunspell-dev && pip install hunspell
384
400
RUN pip install annoy \
385
401
category_encoders && \
386
- # These should already be installed?
387
- # google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1
388
- #google-cloud-automl==1.0.1 \
389
- #google-api-core==1.33.2 \
390
- #google-cloud-bigquery==2.2.0 \
391
- #google-cloud-storage \
392
- #google-cloud-translate==3.* \
393
- #google-cloud-language==2.* \
394
- #google-cloud-videointelligence==2.* \
395
- #google-cloud-vision==2.* && \
396
402
# b/183041606#comment5: the Kaggle data proxy doesn't support these APIs. If the library is missing, it falls back to using a regular BigQuery query to fetch data.
397
403
pip uninstall -y google-cloud-bigquery-storage && \
398
404
# After launch this should be installed from pip
@@ -469,9 +475,9 @@ RUN pip install bleach \
469
475
feather-format \
470
476
fastai \
471
477
importlib-metadata
472
- # RUN python -m spacy download en_core_web_sm && python -m spacy download en_core_web_lg && \
473
- # apt-get install -y ffmpeg && \
474
- # /tmp/clean-layer.sh
478
+ RUN python -m spacy download en_core_web_sm && python -m spacy download en_core_web_lg && \
479
+ apt-get install -y ffmpeg && \
480
+ /tmp/clean-layer.sh
475
481
476
482
###########
477
483
#
@@ -496,7 +502,7 @@ RUN pip install flashtext \
496
502
pympler \
497
503
s3fs \
498
504
featuretools \
499
- # -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper \
505
+ -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper \
500
506
hpsklearn \
501
507
git+https://github.com/Kaggle/learntools \
502
508
kmapper \
@@ -527,7 +533,7 @@ RUN pip install flashtext \
527
533
pip install pytorch-ignite \
528
534
qgrid \
529
535
bqplot \
530
- # earthengine-api \
536
+ earthengine-api \
531
537
transformers \
532
538
# b/232247930 >= 2.2.0 requires pyarrow >= 6.0.0 which conflicts with dependencies for rapidsai 0.21.*
533
539
datasets==2.1.0 \
@@ -544,6 +550,8 @@ RUN pip install flashtext \
544
550
flask \
545
551
# pycrypto is used by competitions team.
546
552
pycrypto \
553
+ # https://github.com/pycrypto/pycrypto/issues/327
554
+ 'setuptools<58' \
547
555
easyocr \
548
556
# ipympl adds interactive widget support for matplotlib
549
557
ipympl==0.7.0 \
0 commit comments