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
- What does “@” mean in Windows batch scripts
- 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?
- How to access environment variable values
- 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
- How to set NODE_ENV to production/development in OS X
- 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
- ‘adb’ is not recognized as an internal or external command, operable program or batch file
- Create an empty file on the commandline in windows (like the linux touch command)
- Setting up enviromental variables in Windows 10 to use java and javac
- 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
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- The request was aborted: Could not create SSL/TLS secure channel
- ” is not recognized as an internal or external command, operable program or batch file
- 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
- Is there a way to perform “if” in python’s lambda?
- How to get the client IP address in PHP
- 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
- How do I set environment variables from Java?
- Moving file using cmd?
- where does Silverlight app’s executable/assembly/whatever actually get installed on my hard drive?
- Can’t start hostednetwork
- “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
- Taskkill /f doesn’t kill a process
- Telnet is not recognized as internal or external command, even after activation
- Sleep/Wait command in Batch
- How to run PowerShell in CMD
- “The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe”
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Access is denied on mklink
- While loop in batch
- 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?
- Can’t start hostednetwork
- Why am I getting ImportError: No module named pip ‘ right after installing pip?
- What does “Can not obtain ownership information” in Netstat -ab mean?
- False ‘Sharing Violation’ Xcopy error message
- 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