The Python Shebang
- VC Healy
- Oct 1, 2020
- 1 min read
This certainly is OS dependant.
The Tiny Python Projects Ch1 Pt4 (the shebang),
In this YouTube video, the presenter is using a Mac and the command:
#!/usr/bin/env python3
The error message for running a file with the above is: The system cannot find the path specified.
This does not work in Windows.
If you are using Windows you will have to find the location of the python.exe
and point the shebang there.
For me, I installed Python 3.8.6 in the root of C, in a folder Python386/ therefore
the shebang should be this:
#!/Python386/python
Comentarios