First switch the path of the terminal to the directory of the python script file and then give the script file run permissions, generally 755 is OK, if it is completely their own private computer, do not do server what, to 777 the permission problem is not big (specific permission meaning refer to the introduction of the chmod directive, do not go into details) : chmod 755.\/*.py then execute.