Ads by ProfitSence
Close

Python is not recognized as an internal or external command

Last Updated on Wednesday 5th Oct 2022

Python is not recognized as an internal or external command.

After Installing Python, You have to add a python path in your environment variables in your system to recognized python in the command prompt

python command error

  • Search for `Edit the system environment variables in your system
  • Click on `Environment Variables at the bottom
  • There is User Variables | System Variables
  • Need to add a path in both of the User & System Variables
  • Select Path & click Edit
  • Add your Environment Variables path in both User Variables & System Variables

To find out path for python

  • Search for Python in your system
  • Right Click on it for Open File Location

If that is shortcut again Right Click on that shortcut & Open File Location

  • You'll take the original python location

Copy the location of the current directory like below

			
					c:UsersCJAppDataLocalProgramsPythonPython38

			
	

Restart Command Prompt

Again check if python is working

			
					C:UsersCJ>python -V
Python 3.8.2