Searching did not yield good results, so I thought I should share the process I took with anyone looking for this in the future.
- Make sure the Python 3 folder is present in the PATH environment variable.
- Locate the "python.exe" file in the Python 3 folder.
- Copy and Paste the "python.exe" file within the Python 3 folder.
- Rename the copied file to "python3" (or whatever you want the command to be).
Now, when you input python3 script.py
to Command Prompt, the script will run through the copied Python 3 file.
Also, by copying python.exe (instead of renaming it) you allow other interpreters - such as PyCharm - to continue using their default "python.exe" path settings.
I hope this helps!
EDIT:
A "symlink" has the same effect, but keeps things a bit tidier.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…