Skip to main content

Posts

Showing posts from October, 2022

Install WSL2 Ubuntu

wsl enable from windows features wsl enter in command prompt WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --set-default-version 2 Still got: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel wsl --update Failed to attach disk 'X:\WSL_IMPORT\ubuntu\ext4.vhdx' to WSL2: The system cannot find the path specified. Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_PATH_NOT_FOUND wsl --unregister ubuntu wsl --install sudo apt install gcc  [Didn't help but installed first] sudo apt install g++ [Helped] - for detectron2 ImportError: libGL.so.1: cannot open shared object file: No such file or directory sudo apt-get install libgl1 import tensorflow as tf print(len(tf.config.list_physical_devices('GPU'))) from tensorflow.python.client import device_lib print(device_lib.