Install Python-3.10 in windows
using python version 3.10.13
Downloading >=Python 3.10 for VS Code - Stack Overflow
I install python 3.10.0 and in command prompt show me version 2.7.2 - Stack Overflow
Videos
hello everyone, I have a question please!
I want to install python v3.10.13 on windows and the installer in this version not exist, but when I downloaded the gzipped folder I don't find the executable within it.
so how can I use this version on windows ?
Follow this steps(hope will help you):
- Download python from the official website python website and chose the version you want
- Make sure you add python to the virtual environment by clicking (add python to environment variable) like this image setup python.
- After that go to VSCode and install the python extension.
- Open the python file now we can see the python version button next to the python button in VSCode lower bar just click it and a will popup window to choose Interpreter now click (Enter interpreter path) then (Find).
- Now go to the path where python is installed and chose (python.exe) to find the python path just type (where python) in cmd if you're using Windows.
You should look into Conda. It makes working with different versions of python easy.
With conda installed this task would be as easy as:
conda create -n py310 python=3.10
Then just tell VS to use py310 environment.
If you run python --version and it returns "Python 2.7.2", you have it installed and it is the first found python in your current path. That doesn't mean you don't also have 3.10.0 installed, it just means that it isn't the first one found in your path.
When installing Python 3.10,You need to mark the checkbox Add Python 3.10 to PATH That's it.
Notice that Sunsetting Python 2
I also suggest uninstalling Python 2 from Your machine. You can do it (Windows 10) straight through settings => apps, search the list type Python 2 and run uninstall process. Good Luck ;-)