This is if you have both the versions installed.
Go to This PC -> Right-click -> Click on Properties -> Advanced System Settings.
You will see the System Properties
. From here navigate to the "Advanced"
Tab -> Click on Environment Variables
.
You will see a top half for the user variables and the bottom half for System variables
.
Check the System Variables
and double-click on the Path
(to edit the Path).
Check for the path of Python(which you wish to run i.e. Python 2.x or 3.x) and move it to the top of the Path list.
Restart the Command Prompt, and now when you check the version of Python, it should correctly display the required version.
Related Posts:
- What does %~dp0 mean, and how does it work?
- What does %~dp0 mean, and how does it work?
- Rainbow Matrix CMD
- How to capture cURL output to a file?
- Windows Activation Batch (.cmd File
- Color echo in batch files
- How can I pass arguments to a batch file?
- Defining and using a variable in batch file
- What is the current directory in a batch file?
- Batch file to copy directories recursively
- How to change current working directory using a batch file
- Invalid drive specification using XCOPY
- Split text file into smaller multiple text file using command line
- Command Prompt Error ‘C:\Program’ is not recognized as an internal or external command, operable program or batch file
- Batch file to copy files from one folder to another folder
- Run a batch file with Windows task scheduler
- How do I execute cmd commands through a batch file?
- wget not recognized as internal or external command
- How to fix “ERROR: The system was unable to find the specified registry key or value.” when running a batch file
- how to empty recyclebin through command prompt?
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- bash: pip: command not found
- bash: pip: command not found
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- How to set the environmental variable LD_LIBRARY_PATH in linux
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- ‘git’ is not recognized as an internal or external command
- What is the use of python-dotenv?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- ‘git’ is not recognized as an internal or external command
- How to set environment variables in Python?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- How do I pass environment variables to Docker containers?
- How to set environment variables in Python?
- ” is not recognized as an internal or external command, operable program or batch file
- anaconda – path environment variable in windows
- The request was aborted: Could not create SSL/TLS secure channel
- What is the LD_PRELOAD trick?
- Difference between os.getenv and os.environ.get
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- bash: pip: command not found
- The request was aborted: Could not create SSL/TLS secure channel
- The request was aborted: Could not create SSL/TLS secure channel
- Difference between xcopy and robocopy
- How to “comment-out” (add comment) in a batch/cmd?
- ng is not recognized as an internal or external command
- Environment variable to control java.io.tmpdir?
- Bat file to run a .exe at the command prompt
- Adding an .env file to React Project
- Windows 7 Symbolic Link – Cannot create a file when that file already exists
- Batch script loop
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- Moving file using cmd?
- “ImportError: No module named site” on Windows
- How to “comment-out” (add comment) in a batch/cmd?
- “if not exist” command in batch file
- IO Error: The Network Adapter could not establish the connection
- Telnet is not recognized as internal or external command, even after activation
- Sleep/Wait command in Batch
- How to run PowerShell in CMD
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Access is denied on mklink
- XCOPY: Overwrite all without prompt in BATCH
- Curl not recognized as an internal or external command, operable program or batch file
- How to set environment variables in PyCharm?
- Redirecting Output from within Batch file
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- How to sleep for five seconds in a batch file/cmd
- What does /p mean in set /p?
- Create a function with optional call variables
- batch file from scheduled task returns code 2147942401
- How does the echo command works in batch programming
- In Windows cmd, how do I prompt for user input and use the result in another command?
- CALL command vs. START with /WAIT option
- How can I download a file with batch file without using any external tools?
- BAT file to map to network drive without running as admin
- “Error installing rails” because “extconf.rb failed” on Ubuntu 18.04
- TTS Voices for Windows7 64 bits
- How to use random in BATCH script?
- Get all object attributes in Python?
- How do you switch between python 2 and 3, and vice versa?
- Windows batch – concatenate multiple text files into one
- How do I change the default location for Git Bash on Windows?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- Batch – If, ElseIf, Else
- How to set commands output as a variable in a batch file
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- “Permission Denied” using cygwin in Windows
- How to add a default include path for GCC in Linux?
- Environment variables of a running process on Unix?
- Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?
- How do you add a Windows environment variable without rebooting?
- How to sleep in a batch file?
- How to make Windows 7 USB flash install media from Linux?
- Send Ctrl-Alt-Del to nested RDP session
- How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off [duplicate]
- IIS 7.5 (Windows 7) – HTTP Error 401.3 – Unauthorized