Skip to content

Commit bba00ba

Browse files
committed
pip install command change
1 parent bd8b1c4 commit bba00ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

use-cases/computer_vision/metastases-detection-pipeline.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@
5454
"outputs": [],
5555
"source": [
5656
"import pip\n",
57-
"from pip._internal import main\n",
5857
"\n",
5958
"\n",
6059
"def import_or_install(package):\n",
6160
" try:\n",
6261
" __import__(package)\n",
6362
" except ImportError:\n",
64-
" main([\"install\", package])\n",
63+
" ! pip install $package\n",
6564
"\n",
6665
"\n",
6766
"required_packages = [\"sagemaker\", \"boto3\", \"h5py\", \"tqdm\", \"matplotlib\", \"opencv-python\"]\n",

use-cases/computer_vision/metastases-detection.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@
3838
"outputs": [],
3939
"source": [
4040
"import pip\n",
41-
"from pip._internal import main\n",
4241
"\n",
4342
"\n",
4443
"def import_or_install(package):\n",
4544
" try:\n",
4645
" __import__(package)\n",
4746
" except ImportError:\n",
48-
" main([\"install\", package])\n",
47+
" ! pip install $package\n",
4948
"\n",
5049
"\n",
5150
"required_packages = [\"sagemaker\", \"boto3\", \"h5py\", \"tqdm\", \"matplotlib\", \"opencv-python\"]\n",

0 commit comments

Comments
 (0)