Getting Python error “from: can't read /var/mail/Bio”

后端 未结 6 1956
长发绾君心
长发绾君心 2020-12-24 11:42

I am running a (bio)python script which results in the following error:

from: can\'t read /var/mail/Bio

seeing as my script doesn\'t have a

6条回答
  •  自闭症患者
    2020-12-24 12:01

    Put this at the top of your .py file (for python 2.x)

    #!/usr/bin/env python 
    

    or for python 3.x

    #!/usr/bin/env python3
    

    This should look up the python environment, without it, it will execute the code as if it were not python code, but straight to the CLI. If you need to specify a manual location of python environment put

    #!/#path/#to/#python
    

提交回复
热议问题