-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.py
38 lines (31 loc) · 1.31 KB
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import launch
if not launch.is_installed("numpy"):
try:
launch.run_pip("install numpy", "requirements for numpy")
except:
print("Can't install numpy. Please follow the readme to install manually")
if not launch.is_installed("cv2"):
try:
launch.run_pip("install opencv-python", "requirements for cv2")
except:
print("Can't install opencv-python. Please follow the readme to install manually")
if not launch.is_installed("PIL"):
try:
launch.run_pip("install Pillow", "requirements for PIL")
except:
print("Can't install Pillow. Please follow the readme to install manually")
if not launch.is_installed("lama_cleaner"):
try:
launch.run_pip("install lama-cleaner", "requirements for lama_cleaner")
except:
print("Can't install lama-cleaner. Please follow the readme to install manually")
if not launch.is_installed("ultralytics"):
try:
launch.run_pip("install ultralytics", "requirements for ultralytics")
except:
print("Can't install ultralytics. Please follow the readme to install manually")
if not launch.is_installed("packaging"):
try:
launch.run_pip("install packaging", "requirements for packaging")
except:
print("Can't install packaging. Please follow the readme to install manually")