Home Windows Sub Linux
Post
Cancel

Windows Sub Linux

删除

1
2
wslconfig /l # 列出所有已经安装的wsl distro
wslconfig /u 'Ubuntu' # 删除一个wsl distro

安装

1
2
wsl.exe --list --online # 列出所有可安装的distro
wsl.exe --install Ubuntu-20.04 # 安装一个distro

Nvidia

查看 cudnn 版本 ref

more “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include\cudnn_version.h”

  1. 在 windows 中装 cuda 和 cudnn
  2. conda install -c conda-forge cudatoolkit=11.2 cudnn=8.2.0 ref
  3. export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/ ref ref

零散问题

  • /some/path/lib/libtinfo.so.6: no version information available (required by /bin/bash)

conda install -c conda-forge ncurses

  • gcc not found

说是好像可以在windows里装,但是感觉在linux里装更方便,比如ubuntu ref

1
2
sudo apt update
sudo apt install build-essential
All Rights Reserved.

Recist

Python装饰器