-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (30 loc) · 1.24 KB
/
install.sh
File metadata and controls
executable file
·36 lines (30 loc) · 1.24 KB
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
#!/bin/bash
# Step 1: Create a new Conda environment with Python 3.9
echo "Creating a new Conda environment named 'HDXRank' with Python 3.9..."
conda update -n base -c conda-forge conda
conda create -n HDXRank python=3.9 -y
# Step 2: Activate the environment
echo "Activating the 'HDXRank' environment..."
CONDA_BASE=$(conda info --base)
if [ -f "$CONDA_BASE/etc/profile.d/conda.sh" ]; then
source "$CONDA_BASE/etc/profile.d/conda.sh"
conda activate HDXRank
else
echo "conda.sh not found. Make sure conda is installed and initialized."
exit 1
fi
# Step 3: Install PyTorch with CUDA
#minimum version requirements: torch>=1.8.0
echo "Installing PyTorch with CUDA..."
pip install torch==2.0.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# Step 4: Install TorchDrug
echo "Installing TorchDrug..."
pip install numpy==1.26
pip install torch-scatter torch-cluster -f https://data.pyg.org/whl/torch-2.0.0+cu118.html
pip install torchdrug
# Step 5: Install scikit-learn and biotite
echo "Installing scikit-learn, and biotite..."
pip install scikit-learn biotite pyyaml
# Step 6: Install additional packages with pip
echo "Installing Biopython, Openpyxl, and pdb2sql using pip..."
pip install biopython==1.83 openpyxl pdb2sql