Thank you for reaching out.
- Press Win + I to open Settings
- Go to Apps → Advanced app settings → App execution aliases or search for “App execution aliases” in the Settings search bar
- Scroll down and find
python.exeandpython3.exe - Toggle both switches to Off
- Open Command Prompt and run
python --versionandpip --versionto confirm Python works - If not working, go to Settings → System → About → Advanced system settings → Environment Variables
- Under System variables, select Path → Edit
- Add Python install folder (e.g.,
C:\Python311\) and Scripts folder (e.g.,C:\Python311\Scripts\) - Click OK and restart Command Prompt to apply changes.
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer".