I installed Python3.10 and I have a venv in a project I have been working on. I don't understand how to upgrade this easily. My background is mostly in Node and JS which is must simpler and more straightforward to change versions.
I was just trying to create a new venv but that didn't work
mpaccione@T430:~/Projects/investing/react-flask-app/server$ python3.10 -m venv ~/Projects/investing/react-flask-app/server
Error: Command '['/home/mpaccione/Projects/investing/react-flask-app/server/bin/python3.10', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
I also thought maybe I could change the pyvenv config could be changed but that didn't work either
home = /usr/bin
include-system-site-packages = false
version = 3.8
to
home = /usr/bin/python3.10
include-system-site-packages = false
version = 3.10
Is there just a simply straightforward way to change this? I'm sure it's a common use case!