How to use python on linux (ubuntu) on Windows 11 with wsl

You can use Python in the linux system inside Window 11.

First look for windows features

This window will appear

Check for Virtual Machine platform
In the Microsoft store search for windows subsystem for linux and obtain it then open it
in the command line write wsl.exe –install Ubuntu

You have installed Ubuntu

do

sudo apt update

sudo apt update

Then

sudo apt full-upgrade

Press Y when prompted.

To check that you have the latest package lists, type:

sudo apt update

Then, start with some basic X11 applications:

sudo apt install x11-apps

To run the xeyes, a “follow the mouse” application, type:

xeyes &

xcalc

Python3 is yet installed

There is no tkinter

To install tkinter:


Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.