[pypy-dev] Error running Idle

Armin Rigo armin.rigo at gmail.com
Fri Feb 28 12:12:03 EST 2020


Hi Jerry,

On Fri, 28 Feb 2020 at 16:56, Jerry Spicklemire <jspicklemire at gmail.com> wrote:
>     exec code in self.locals
>          ^
> SyntaxError: Missing parentheses in call to 'exec'

This error comes from Python 3; it's not a syntax error in Python 2.
When you're executing a Python file directly, it picks whatever Python
interpreter is associated with .py files in your Windows.  It doesn't
matter that the .py file is inside a specific directory like
PyPy27-32.  In your case it is picking up either CPython 3.x or
PyPy3.6, whichever is installed.  To run a .py file with a specific
version of Python, use a command like "c:\python\pypy27-32\pypy.exe
c:\path\to\file.py".


A bientôt,

Armin.


More information about the pypy-dev mailing list