This message:
/usr/bin/env: ‘python’: No such file or directory
suggests that the hashbang in your script looks like this:
#!/usr/bin/env python
Since running the script explicitly with python3
worked OK, it sounds like you're on a distro where by default you only have python3
and no python
. As other answers suggest, you may install python-is-python3
(which basically creates a python
symlink pointing to python3
). If you don't wish to do that, then just adjust the script's hashbang so that /usr/bin/env
looks for python3
:
#!/usr/bin/env python3
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…