How to make python script executable on osx?
问题 I just want to make my script as an application. double-click and run instead of running in terminal. I have done it before with automator but now, on el capitan it doesn't work. It only gives error without explanation. When I try with automator I get this error: "The action “Run Shell Script” encountered an error." Also I tried the trick below, still I am not able to do this. #!/usr/bin/env python chmod +x script.py SOLVED: After these two steps. I changed "Open with" to terminal for only