Timeline for How to run python scripts without typing python in windows
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 17, 2021 at 11:08 | answer | added | MrLok3rs | timeline score: 1 | |
| Mar 17, 2021 at 10:08 | comment | added | 576i |
this is a bad idea because sooner or later you will have multiple version of python on your windows pc. alternative: for those scripts you want to start by name, create a .batfile which starts that program with your chosen version of python.
|
|
| Mar 17, 2021 at 10:04 | answer | added | KlausF | timeline score: 1 | |
| Mar 17, 2021 at 9:52 | comment | added | go2nirvana |
Operating system is not an oracle and will not guess what your intents are. Python is not the only program that can operate .py files, so you have to specify what program to run it with. I guess, there could be some way to run it with python if no other is specified, but why would you even want that in the first place?
|
|
| Mar 17, 2021 at 9:47 | history | asked | Charlie | CC BY-SA 4.0 |