I have older version of python but i need newer version how to install new version without removing older. And one thing is making me so confused. How can i run them in command line. If i use pip it runs in 3.6 version. But it must run the code in 3.9 version.
Asked
Active
Viewed 1,021 times
-3
-
Are you on windows? (you should probably mention it in your question) – Sujal Singh Sep 20 '21 at 04:17
-
use pyenv on windows if you need multiple versions. I also use it on my Mac because why not – rv.kvetch Sep 20 '21 at 04:17
-
You need to use virtual environment. You can have multiple different version of Python on the same machine. – Goh Kok Han Sep 20 '21 at 04:18
1 Answers
0
You can have 2 or more python versions on you machine. All you have to do when you want to specify which version to use is to do python I.e
python3.x -m venv <name>
With that, you can specify your desire python version.

samkayz
- 87
- 3