-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_dependencies_macos.py
44 lines (35 loc) · 1017 Bytes
/
install_dependencies_macos.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
39
40
41
42
43
44
# install_dependencies.py
import subprocess
# List of dependencies to install
packages = [
'pandas',
'matplotlib',
'seaborn',
'scikit-learn',
'scipy'
]
# Install each dependency using pip
for package in packages:
subprocess.call(['pip3', 'install', package])
print("Dependencies installed successfully.")
# # install_dependencies.py
# import subprocess
# # List of dependencies to install
# packages = [
# 'pandas',
# 'matplotlib',
# 'seaborn',
# 'scikit-learn',
# 'scipy'
# ]
# # Install each dependency using pip if it's not already installed
# for package in packages:
# try:
# # Check if the package is already installed
# subprocess.check_call(['pip3', 'show', package])
# except subprocess.CalledProcessError:
# # If the package is not installed, install it
# subprocess.call(['pip3', 'install', package])
# else:
# print(f"{package} is already installed.")
# print("Dependencies installed successfully.")