On 2025-09-03 13:06, AM CR via Python-list wrote:
Good morning everyone.

First of all, thank you in advance for your advice and suggestions.

After a few attempts, I've come to the conclusion that working on Windows
XP isn't very reasonable, given the many advances available.

I'll try this on a Windows 7 Home machine.

I'd appreciate it if someone could advise me on which version of Python is
recommended for that operating system.

Thank you very much.

Arodri

According to this:

    https://www.python.org/downloads/windows/

the last version that supported Windows 7 was Python 3.8.10, released in 2021. It reached its end of support last year.

Thomas Passin <[email protected]> escreveu (terça, 2/09/2025 à(s) 23:24):

On 9/2/2025 11:29 AM, amrodi9999--- via Python-list wrote:
> I'm new to Python.
> Operating System - Windows XP SP3
> Python 2.7 installed.
>
> I got a script that tries to improve the image?
> I created a bat file using the command line.
>
> C:\python27\python.exe d:\temp\teste.py
>
> But even though it runs, it displays an error:
>
> "... no encoding declare..."
>
> Can anyone help?
>
> My sincere thanks in advance.

The code file you posted contains several words that probably contain
non-ascii characters (e.g.,  colorizacao). By default, Python 2.x uses
ASCII encoding for the source file. You can tell it to use another
encoding by a special comment at the start of the file that contains

"# coding: utf-8"

(or whatever encoding you want). One common comment format, which is
understood by many Linux programs, is

# -*- coding: utf-8 -*-

Python 3.x uses utf-8 by default.

--
https://mail.python.org/mailman3//lists/python-list.python.org


--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to