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

@@ -54,7 +54,7 @@
" !echo \"deb http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal\" > /etc/apt/sources.list.d/tensorflow-serving.list\n",
" !curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add -\n",
" !apt update && apt-get install -y tensorflow-model-server\n",
" !pip install -q -U tensorflow-serving-api\n",
" %pip install -q -U tensorflow-serving-api\n",
"\n",
"# Scikit-Learn ≥0.20 is required\n",
"import sklearn\n",