Replace pip install mcpi with %pip which always installs in the right environment

This commit is contained in:
Aurélien Geron
2021-10-07 18:10:34 +13:00
parent b3081ceab6
commit fdb5d1695e
5 changed files with 16 additions and 9 deletions

View File

@@ -57,8 +57,8 @@
"IS_KAGGLE = \"kaggle_secrets\" in sys.modules\n",
"\n",
"if IS_COLAB:\n",
" !pip install -q -U tensorflow-addons\n",
" !pip install -q -U transformers\n",
" %pip install -q -U tensorflow-addons\n",
" %pip install -q -U transformers\n",
"\n",
"# Scikit-Learn ≥0.20 is required\n",
"import sklearn\n",