Also test pip:

python --version Should output: Python 3.12.x

C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\ C:\Program Files\Python312\ Also find the folder (for pip):

py script.py py -m pip install package This works even if Python isn’t in PATH.

C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\ C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\Scripts\ (Replace YourUsername and Python312 with your actual username and Python version.) Click OK on all windows. Restart Command Prompt (or your PC) for changes to take effect. Verify It Worked Open a new Command Prompt or PowerShell and type:

How To Add Python To Path Windows 11 ((top)) May 2026

Also test pip:

python --version Should output: Python 3.12.x how to add python to path windows 11

C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\ C:\Program Files\Python312\ Also find the folder (for pip): Also test pip: python --version Should output: Python 3

py script.py py -m pip install package This works even if Python isn’t in PATH. how to add python to path windows 11

C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\ C:\Users\YourUsername\AppData\Local\Programs\Python\Python312\Scripts\ (Replace YourUsername and Python312 with your actual username and Python version.) Click OK on all windows. Restart Command Prompt (or your PC) for changes to take effect. Verify It Worked Open a new Command Prompt or PowerShell and type: