Will apt installation of Python 3.10 break the 3.8 version?

Can I install Python 3.10 on Ubuntu 20.04 using apt without worrying that it breaks the Python 3.8?

I use Python 3.8 in many projects.

I'd run this:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10

EDIT:

Going to use Python 3.10 in virtualenv only.

0

1 Answer

The virtualenv utility creates virtual Python instances, each invokable with its own Python executable. Using Python 3.10 in a virtualenv environment will not have any effect on the Python version that is used by default outside the Python virtual environment (Python 3.8 in Ubuntu 20.04).

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like