python3.bat C:\path\to\Python3\python.exe %* # than one version installed, outside of a virtual environment.Ĭreate a Windows batch file called python3.bat with the following information:Įx. Or: # Use a specific version of Python 3.x if you have more # as detected by the Python Launcher for Windows. If you aren't set on specifically using python3 and have the Python Launcher for Windows ( py.exe) installed which comes with "vanilla" Python from, you can use: # Use the "default" installation of Python 3.x, Make symbolic link called python3.exe to your preferred copy of Python 3.x with mklink: mklink "C:\path\to\symlink\python3.exe" "C:\path\to\Python3\python.exe"Ĭopy the python.exe file in your preferred installation of Python 3.x and rename the copied executable python3.exe. you want to run Python 3.x with python3), then there are at least a few possible approaches (each item below is a separate option): You can find a refresher on editing Windows Path variables here. That is, the Python 3.x executable is usually just python ( python.exe).īe aware that python.exe should be in a folder listed in your Windows Path if you want to access it as just python. not WSL), python3 is not typically a standard alias. "vanilla" Python, Anaconda, SciPy, etc.), but if I am not misunderstanding, this likely shouldn't be necessary. You haven't mentioned what release of Python you are using (e.g. I want to alias python3 to python on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |