- Install miniconda into your home directory:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x ./Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
Then follow the setup prompts. You may need to restart your terminal after installing to update your environment variables.
- Setup
conda
environment and clone pytorch:
conda env create -f pytorch-dev.yaml
git clone https://github.com/pytorch/pytorch
git -C pytorch submodule update --init --recursive
- Build using the included script:
./build.sh
After this finishes, pytorch will be installed in the conda environment pytorch-dev
which can be enabled with
conda activate pytorch-dev