利用 WSL 优雅地炼丹

安装 WSL

配置 WSL 的 GUI 环境

samuel@RYZEN-3800X-SAM:~$ firefox
Error: no DISPLAY environment variable specified

https://x410.dev/cookbook/

https://x410.dev/cookbook/wsl/setting-up-wsl-for-linux-gui-apps/

https://x410.dev/cookbook/wsl/using-x410-with-wsl2/

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0

配置 TensorFlow 环境

https://docs.docker.com/engine/install/ubuntu/

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg