How to use shebang to run python3 script?
Feb 11, 2023 · 1 min read · Creating the file: #!/usr/bin/python3 print("shebang works!") Changing file permission: You have to do it once. sudo chmod +x file.py Running the script: ./file.py PS: To check all the available locations of executable python, in bash: type - pyth...
Join discussion