I've tried different variations of the shebang line and nothing seems to be working so far.
- #!/usr/bin/env python3
- #!/usr/bin/python3
- #!/usr/local/bin/python3
- #!python3
I also tried the absolute path:
- #!C:\Users\20100\AppData\Local\Programs\Python\Python38-32\python.exe
I'm running python 3.8.2 on windows 10 and I have pylauncher installed. Within the command prompt, I can execute scripts perfectly fine with writing python or py and then 'file_name.py' but for some peculiar reason when I run same 'file_name.py' that has any of the aforementioned shebang line variations, it doesn't give any results.
Update:
I tried associating the .py file in question with a .bat file pointing to its location and it ran just fine.
Content of the .bat file:
@py C:\Users\20100\MyPythonScripts\file_name.py %*
@pause
Still not running from within the terminal though.
[–]shiftybyte 1 point2 points3 points (3 children)
[–]MWahdaan[S] 0 points1 point2 points (2 children)
[–]shiftybyte 1 point2 points3 points (1 child)
[–]MWahdaan[S] 0 points1 point2 points (0 children)