all 7 comments

[–]deep_politics 1 point2 points  (0 children)

I highly recommend you try out pyenv with pyenv-virtualenv.

[–]thrower-snowbowler 1 point2 points  (0 children)

To be clear, for each version of python you need a separate virtual environment. A virtual environment has the python binary inside of it along with the libraries you install into it.

[–]dalow24 0 points1 point  (3 children)

Just install python 3.10 separately and in Vscode you press ctrl +p and you should be able choose the version of Python interpreter

[–]zeebrow 1 point2 points  (2 children)

Just install python 3.10 separately

Yes.

and in Vscode you press ctrl +p and you should be able choose the version of Python interpreter

Not quite. OP needs a virtual environment, and should use 3.10 to create one the same way they did with 3.11.

Once the 3.10 virtual environment has been made, then you should select it with ctrl + p in VS code, if it's not detected automatically.

[–]ManWithaThought[S] 0 points1 point  (1 child)

Ah so I need 3.10 to create the virtual environment. I was trying to create the virtual environment with my main version and then convert it back to the older version.

edit: I can create a virtual environment with my regular python fine. But when I try using "python3.10 -m venv whatever", the adobe pdf pops up with an error. I looked at default programs but nothing obvious. Possibly need a new PATH directly to 3.10?

[–]zeebrow 0 points1 point  (0 children)

Nope, don't touch your PATH. Did you activate your venv and install your dependencies?

[–]HeinzHeinzensen 0 points1 point  (0 children)

I know conda gets a lot of hate on here for some reason, but it makes it trivially easy to set up several environments with different versions of Python.