SyntaxError: multiple statements found while compiling a single statement July 1, 2022 by Tarik I had the same problem. This worked for me on mac: echo "set enable-bracketed-paste off" >> ~/.inputrc