Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Python36\python.exe on line 1, but no encoding declared [closed]

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

I don't understand why it shows me that when I want to open the interpreter. Can someone help me please?

snap shot

like image 831
Beno Avatar asked Nov 20 '17 13:11

Beno


1 Answers

In my case I got this error on running pyinstaller's exe file from cmd and it automatically got fixed when I ran that file by directly clicking on it NOT from cmd

So, to fix this problem don't run file from terminal/cmd, try any other way.

like image 198
Shivam Kumar Avatar answered Sep 17 '22 16:09

Shivam Kumar