How to use Python3.10 on Ubuntu?

Viewed 2990

I have installed Python 3.10 from deadsnakes on my Ubuntu 20.04 machine.

How to use it? python3 --version returns Python 3.8.10 and python3.10 -m venv venv returns error (I've installed python3-venv as well).

2 Answers

So I was having the exact same problem. I figured out that I actually had to run "sudo apt-get install python3.10-full" instead of just "sudo apt-get install python3.10". I was then able to create a python3.10 virtual environment by executing "python3.10 -m venv virt".

Related