Skip to content

Commit a183e22

Browse files
authored
Create install_package.py
1 parent e381723 commit a183e22

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

install_package.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Taken from: https://www.kaggle.com/getting-started/65975
2+
3+
# import
4+
import sys
5+
import subprocess
6+
7+
# install package function
8+
def install(package):
9+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
10+
11+
# example
12+
# install("pathfinding")

0 commit comments

Comments
 (0)