Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.1 KB

File metadata and controls

33 lines (25 loc) · 1.1 KB

PyTorch Ultimate 2024 - From Basics to Cutting-Edge

PyTorch Ultimate 2024 - From Basics to Cutting-Edge, Published by Packt Publishing

Environment Installation from yml file

We work with Anaconda and use conda environments. You can replicate my environment by running:

C:\...> conda env create -f pytorch.yml

Environment Installation from scratch

If the installation from yml file fails, you can install the environment manually by running these commands:

C:\...> conda create -n pytorch python=3.10
C:\...> conda activate pytorch
(pytorch) C:\...> conda install pytorch torchvision torchaudio cpuonly -c pytorch
(pytorch) C:\...> conda install ipykernel
(pytorch) C:\...> conda install -c anaconda seaborn
(pytorch) C:\...> conda install scikit-learn
(pytorch) C:\...> $ conda install -c conda-forge detecto

Environment Installation using venv and without conda

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements_py3.txt