Installation Guide for Pytorch
Installation Guide for Deep Learning 2024
Installation Guide
DLIP 2024-1
# Install Anaconda from website
# Update CONDA in Base
conda update -n base -c defaults conda
# Create myEnv=py39
conda create -n py39 python=3.9.12
# Activate myEnv
conda activate py39
# Install Numpy, OpenCV, Matplot, Jupyter
conda install -c anaconda seaborn jupyter
pip install opencv-python
# Check GPU model
# Install NVIDIA Driver from Website
# Install CUDA and cuNN
conda install -c anaconda cudatoolkit=11.8 cudnn
# Install PyTorch
conda install -c anaconda cudatoolkit=11.8 cudnn seaborn jupyter
conda install pytorch=2.1 torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install torchsummary
# Check Installed Packaged in myENV
conda list all
for MacOS
Part 1. Installing Python Environment
Step 1-1. Install Anaconda
Step 1-2. Install Python



Step 1-3. Install Libraries
Install Numpy, OpenCV, Matplot, Jupyter
Part 2. Install Visual Studio Code
Part 3. Installing Graphic Card and CUDA
Step 3-1. Install GPU Driver, CUDA, cuDNN
Part 4. Installing DL Framework
Step 4-1. Install Pytorch


Step 4-2 Other Option (Tensorflow and Keras)
Troubleshooting
Q1. GPU not detected in PyTorch
SOLUTION 1) Type conda list in the py39 environment
conda list in the py39 environment
SOLUTION 2) NVIDIA graphics driver update
Q2. Conda error: Downloaded bytes did not match Content-Length
Solution
Q3. Conda Error: ClobberError: This has incompatible packages due to a shared path, CondaVerification Error
Go to Solution of Q2
Q4. Build Error in VS Code ( Numpy C-extension failed)

SOLUTION ) Default Profile Setting in CODE

Last updated
