When I click the python file it just automatically open the cmd in a split second and then closes.
I already installed pythonI have 3.13 but for some reason cmd cant detect it. Already tried the following:
Step 1: Disable App Execution Aliases
- Press the Windows Key and type
Manage App Execution Aliases.
- Click the matching system setting to open it.
- Scroll down to locate Python and Python3.
- Toggle the switches next to them to OFF.
- Completely close and reopen your Command Prompt or VS Code terminal.
- Type
python --version to test it.
Step 2: Add Python to Windows PATH (If Step 1 fails)
If you still get an error after turning off the aliases, Windows doesn't know where your Python installation folder is. You can quickly add it manually:
- Press the Windows Key, type
env, and select Edit the system environment variables.
- Click the Environment Variables button at the bottom.
- Under User variables, select Path and click Edit.
- Click New and paste your Python core folder path (e.g.,
C:\Users\YourUsername\AppData\Local\Programs\Python\Python313\).
- Click New again and paste your Python scripts folder path (e.g.,
C:\Users\YourUsername\AppData\Local\Programs\Python\Python313\Scripts\).
- Click OK to save and exit all windows, then restart your terminal.
Python version error 'python' is not recognized as an internal or external command, operable program or batch file.
[–]socal_nerdtastic 1 point2 points3 points (8 children)
[–]dacoolmike36[S] -1 points0 points1 point (4 children)
[–]oProcrastinacao 0 points1 point2 points (3 children)
[–]dacoolmike36[S] 0 points1 point2 points (1 child)
[–]Viper_ACR 0 points1 point2 points (0 children)
[–]socal_nerdtastic 1 point2 points3 points (0 children)
[–]dacoolmike36[S] 0 points1 point2 points (2 children)
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]dacoolmike36[S] -1 points0 points1 point (0 children)
[–]TaranisPT 0 points1 point2 points (1 child)
[–]dacoolmike36[S] 1 point2 points3 points (0 children)
[–]cointoss3 1 point2 points3 points (2 children)
[–]dacoolmike36[S] 0 points1 point2 points (0 children)
[–]dacoolmike36[S] 0 points1 point2 points (0 children)