Skip to content

Install Pytorch on server

elhava edited this page Jun 16, 2023 · 2 revisions
  1. Connect to "Robin" which is the Sunnybrook server
ssh <username>@142.76.1.189
  1. Connect to lab server "lin1" or "lin2"
ssh lin2
  1. download anaconda in your home directory: home/username (if you installed anaconda before ignore next three steps):
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
  1. check list of folders to ensure it is downloaded:
ls
  1. install anaconda:
bash Anaconda3-2018.12-Linux-x86_64.sh

it will ask if you want to install VScode. answer NO

  1. check if anaconda installed properly:
conda
  1. make your own virtual environment using a yml file: before running this command, you should first put the .yml file in your home/ directory using WinSCP software. If you use the .yml file that I provide teh name of the env will be 'pytorch'
conda env create -f pytorch.yml
  1. activate your env:
conda activate pytorch

Most of the libraries that you may need for machine learning analysis are already installed. However, you are always able install any other libraries.

Clone this wiki locally