Configuring environment dependencies
# Dependence
TIP
- DLpMHC I requires the following
Python 3.8
modules:numpy
1.23.1pandas
1.2.4einops
0.4.1pytorch
1.11.0
# Install
With the following command, you will create a virtual environment named DLpMHCI
# Create virtual environment
conda create -n DLpMHCI python=3.8
conda activate DLpMHCI
# Download dependencies for the specified version
pip install numpy==1.23.1
pip install pandas==1.2.4
pip install einops==0.4.1
However, the download and installation of pytorch are different. You need to go to the official website (opens new window) to select a version suitable for your server and use its instructions to install it.
# For example, my computer is MacBook Air(2022,M2,Monterey) , and I successfully completed the installation using the following code.
pip install torch==1.11.0 torchvision torchaudio
As the version of pytorch is updated, the name of a function we use will change. Therefore, it is strongly recommended that you install v.1.11.0
pytorch, not higher or lower.