because when you open it by double clicking(i.e. opening command for os) the file the os doesn't know what to do with it. so try running it in a editor or a ipynb (py notebook) it should work