To get "Ubuntu on Windows" and other linux kernels see instructions for installing WSL2. It is significantly better, but may require you to update your windows version.
Hint on copy-paste: One way to paste into a Windows terminal (of any sort) is the <ctrl-c> text somewhere else and then, while selected in the terminal at the cursor, to <right click> the mouse (which pastes)
When wsl is installed, you can go wsl in any powershell terminal to enter
To get git credentials integrated, in a windows terminal (i.e. not in the WSL terminal) run
git config --global credential.helper wincred
Then in a WSL terminal (within VS Code or otherwise, but replacing with your email and name),
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe"
(See more details in Sharing Credentials )
cd ~
sudo apt update
sudo apt-get upgrade
sudo apt install make gcc unzip
sudo apt-get update-
Install Conda
- In the Ubuntu terminal, first install python/etc. tools
wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh bash Anaconda3-2020.07-Linux-x86_64.sh
- Run
Powershellas an administrator - In the Ubuntu terminal, first install python/etc. tools
wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
bash Anaconda3-2020.07-linux-x86_64.sh- Create a directory
.condaby runningmkdir ~/.condaif the warning "Unable to register the environment" shows up
- The installation will take time. You should:
- accept default paths
- accept licensing terms
- IMPORTANT Manually choose
yesto have it do theconda init
- (Optional) Delete the installation file
rm Anaconda3-2020.07-Linux-x86_64.sh- Upgrade
conda upgrade conda- Install pytorch through conda. With a GPU:
conda install pytorch cudatoolkit=11.0 -c pytorchOr without,
conda install pytorch -c pytorch- You can reset your ubuntu setup by
- Searching for Ubuntu from the main "Start" icon, right-click on the "Ubuntu" app, Choose "App Settings", then choose "Reset"