When I run my snap, it prompts file "not found", in fact it does exist there

Thank you , But when I change back to “#!/usr/bin/env python”, it prompts “/usr/bin/env: ‘python2’ : No such file or directory” , in fact it works well in the console .