Koe*_*oen -1 python linux zsh shebang
我把“ #!usr/bin/env python”放在coroutine.py的第一行,但是当我尝试通过“ ./test.py”直接运行coroutine.py时,我得到了这个:
#!usr/bin/env python
./test.py
zsh: ./coroutine.py: bad interpreter: usr/bin/env: no such file or directory
我的 zshrc 有什么问题吗?
Aro*_*unt 5
因为你错过了前导斜杠:#!/usr/bin/env python它被称为 hashbang (而不是 shebang 只是#!@cdarke 在评论中解释的部分)
#!/usr/bin/env python
#!
更多关于shebang/hashbang
归档时间:
8 年,2 月 前
查看次数:
701 次
最近记录:
8 年,1 月 前