Create a virtual environment with the new version:
Using your native package manager is the safest and most efficient path. It maintains security updates automatically and flags underlying library dependencies. Ubuntu and Debian-Based Distributions python update linux
