shebang line not working

前端 未结 1 764
暖寄归人
暖寄归人 2021-01-12 15:42

Don\'t know what\'s wrong with my shebang line:

vic@ubuntu:~/Desktop$ ./test.py 
: No such file or directory

vic@ubuntu:~/Desktop$ ls -l
...
-rwxr-xr-x  1 v         


        
相关标签:
1条回答
  • 2021-01-12 16:32

    Your file has Windows-type line endings. Convert it to proper Unix-type line endings and you should be good to go.

    $ dos2unix test.py
    
    0 讨论(0)
提交回复
热议问题