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).
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".
python3.10 --version will work.
python3-venv is for 3.8, so install python3.10-venv. For reference: deadsnakes packages for 3.10 for Focal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With