How to install Python 3.12 (Latest) on Ubuntu WSL

WSL is taking over the world for Developers working on multiple Environments. I published in the past this guide on How to install python 3.11 on Ubuntu WSL and now is time for getting python 3.11 Installed and Revived.

First. Look at which Python you got.

At the time of my checking Ubuntu22.04 came with python 3.10

Preparation Steps, Updates and Dependencies.

First you want to get your packages updated and install some dependencies.

DeadSnakes is the Repository that maintains the latest releases from Python for Ubuntu. Add the repository.

Install Python 3.12 (Latest) on Windows for Linux Subsystem WSL.

You should now be able to see the python version installed.

Install PiPy

Create a .venv in Python3.12

You should now be able to create more .venv Environments with Python 3.12

Look into our other WSL Content you might like

Here is some other WSL related content you might like. If you are a developer getting more familiar with WSL, this content might be for you.

Leave a comment

Blog at WordPress.com.

Up ↑