/usr/bin/python^M: bad interpreter: No such file or directory

/usr/bin/python^M: bad interpreter: No such file or directory

it’s because the new line difference between Unix and windows , the easiest fix it run this command

dos2unix filename