executable - Python shebang execution permission denied -
this question has answer here:
- run python script directly command line 2 answers
 
i have simple script called blah.py looks this:
#!/space/jazz/1/users/gwarner/anaconda/bin python print 'here'   my which python returns /space/jazz/1/users/gwarner/anaconda/bin/python , ls -l blah.py returns -rwxrwxr-x 1 gwarner gwarner 64 jul 13 14:16 blah.py. username gwarner. however, when try execute script directory lives in using ./blah.py ./blah.py: permission denied. runs correctly when execute using python blah.py. going on?
i think have space in shebang line... try this:
#!/space/jazz/1/users/gwarner/anaconda/bin/python      
Comments
Post a Comment