Skip to content

Python not working in CMD

If you are a rookie in Python like me, you may face a lot of problems.

One of the very first problems is when you are trying to run Python via Windows Command prompt. To run Python in CMD, you should type:

python

But you may see this error:

‘python’ is not recognized as an internal or external command,
operable program or batch file.

This is the solution:

1- Open System properties (Right-Click on My Computer )

2- Go to Advanced system settings (On the left)

3- Go to Environment Variables

You can also type “system env” in Start Menu to open System Properties.

4- Select and edit path

5- Add these new paths:

Python Installation Path

Python Installation Path\scripts

6- Apply your settings and run Python again.

Published inProgrammingTroubleshootingWindows

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Skip to toolbar