
The error below, once fixed, led to a series of errors in other libs. I gave up, deleted PyPy, installed newer version, same thing. No I don't edit in Idle, but I do use it for a few tasks when it comes handy. C:\>C:\Python\PyPy27-32\lib-python\2.7\idlelib\idle.py Traceback (most recent call last): File "C:\Python\PyPy27-32\lib-python\2.7\idlelib\idle.py", line 12, in <module> from idlelib.PyShell import main # This is subject to change File "C:\Python\PyPy27-32\lib-python\2.7\idlelib\PyShell.py", line 775 exec code in self.locals ^ SyntaxError: Missing parentheses in call to 'exec'

Hi Jerry, On Fri, 28 Feb 2020 at 16:56, Jerry Spicklemire <jspicklemire@gmail.com> wrote:
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.

Hi Jerry, On Fri, 28 Feb 2020 at 16:56, Jerry Spicklemire <jspicklemire@gmail.com> wrote:
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.
participants (2)
-
Armin Rigo
-
Jerry Spicklemire