Skip to content

SyntaxError: Non-UTF-8 code starting with '\x90' in file python.exe on line 1, but no encoding declared. #847

@jovan2009

Description

@jovan2009

Hi, use Python 3.13.9 downloaded from this repository. I downloaded the file named cpython-3.13.9+20251031-x86_64-pc-windows-msvc-pgo-full.tar.zst. I unzipped it in a folder and I set this environment variables in addition to adding it to the PATH:

Image

It is in fact copied with overwrite over an older installation of python that I downloaded from the same repository several weeks ago and unzipped in the same manner I mentioned.

I noticed recently that when I start python.exe with no arguments in command prompt I get before anything else an error message:

Microsoft Windows [Version 10.0.26200.7019]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Sidef>C:\Python313\install\python.exe
Python 3.13.9 (main, Oct 31 2025, 22:58:20) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Python313\install\python.exe on line 1, but no encoding declared; see https://peps.python.org/pep-0263/ for details
Failed calling sys.__interactivehook__
Traceback (most recent call last):
  File "<frozen site>", line 536, in register_readline
AttributeError: module 'readline' has no attribute 'backend'
>>>

I don't encounter (or it's not obvious to me) any particular problem when I use it for my main purpose, to run ComfyUI. I just wanted to let you know what's happening. I'm not a developer and I don't understand the meaning of the error, the cause or what might imply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions