-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_packages.sh
94 lines (89 loc) · 2.12 KB
/
install_packages.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
# Check if the environment name/path is passed as an argument
if [ -z "$1" ]; then
echo "Error: No Conda environment name or path provided."
echo "Usage: ./install_packages.sh <conda-environment>"
exit 1
fi
# Activate the Conda environment
conda_env="$1"
echo "Activating Conda environment: $conda_env"
source activate "$conda_env"
# Define a list of packages to be installed
packages=(
"av==12.0.0"
"blessed==1.20.0"
"contourpy==1.2.0"
"cycler==0.12.1"
"debugpy==1.6.7"
"decorator==5.1.1"
"exceptiongroup==1.2.2"
"executing==2.0.1"
"filelock==3.13.1"
"fonttools==4.50.0"
"fsspec==2024.3.1"
"gmpy2==2.1.2"
"gpustat==1.1.1"
"h5==0.9.3"
"h5py==3.11.0"
"huggingface-hub==0.24.6"
"idna==3.4"
"importlib-metadata==8.2.0"
"jedi==0.19.1"
"jinja2==3.1.3"
"joblib==1.4.2"
"jupyter-core==5.7.2"
"kiwisolver==1.4.5"
"markupsafe==2.1.3"
"matplotlib==3.8.3"
"mkl-fft==1.3.8"
"mkl-random==1.2.4"
"mkl-service==2.4.0"
"mpmath==1.3.0"
"nest-asyncio==1.6.0"
"networkx==3.1"
"numpy==1.26.4"
"nvidia-ml-py==12.535.133"
"opencv-python==4.9.0.80"
"packaging==24.0"
"pandas==2.2.1"
"parso==0.8.4"
"pexpect==4.9.0"
"pickleshare==0.7.5"
"pillow==10.2.0"
"platformdirs==4.2.2"
"prompt-toolkit==3.0.47"
"psutil==5.9.0"
"pure_eval==0.2.3"
"pygments==2.18.0"
"pyparsing==3.1.2"
"python-dateutil==2.9.0.post0"
"python-graphviz==0.20.3"
"pytz==2024.1"
"pyyaml==6.0.1"
"pyzmq==25.1.2"
"regex==2023.12.25"
"requests==2.31.0"
"scikit-learn==1.3.2"
"scipy==1.11.3"
"setuptools==68.1.2"
"six==1.16.0"
"sqlite==3.41.2"
"sympy==1.13"
"tbb==2021.8.0"
"traitlets==5.9.0"
"tqdm==4.66.1"
"typing-extensions==4.9.0"
"transformers"
"urllib3==1.27.0"
"wcwidth==0.2.10"
"wheel==0.41.2"
"wrapt==1.15.0"
"zipp==3.17.1"
)
# Loop through the list and install each package
for package in "${packages[@]}"; do
echo "Installing $package..."
python -m pip install "$package"
done
echo "All packages have been installed."