WSL 환경 - zerobitkr/ai_project GitHub Wiki

WSL2 CUDA설치

필수 package

sudo apt install python3-pip
pip install pandas
pip install transformers
pip install torch

WSL2 딥러닝 환경 구축하기 (CUDA, CuDNN, Anaconda)

PC 설치 예

wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.4.0/local_installers/cuda-repo-wsl-ubuntu-11-4-local_11.4.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-4-local_11.4.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-wsl-ubuntu-11-4-local/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda

liburu6 관련 error 발생한 경우

sudo add-apt-repository ppa:cloudhan/liburcu6
sudo apt update
sudo apt install liburcu6

sudo apt-get -y install cuda