Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Environment Configuration

Back


Install Miniconda


Create new env

conda deactivate
conda create --name d2l python=3.9 -y

Install packages

conda activate d2l
pip install torch==2.0.0 torchvision==0.15.1
pip install d2l==1.0.3

Downloading and Running the Code

mkdir d2l-en && cd d2l-en
curl https://d2l.ai/d2l-en-1.0.3.zip -o d2l-en.zip
unzip d2l-en.zip && rm d2l-en.zip       # for linux and mac
# for windows, unzip the download file
cd pytorch
jupyter notebook

Shortcut to Jupyter Notebook server

conda deactivate
conda activate d2l
jupyter notebook
# then navigate to pytorch folder

TOP