Why can't I convert py to exe?

Try to convert py to exe using pyinstaller, but always get the error
Example:
x = 0
for i in range(10):
 n = input('Enter number: ')
try:
 x += int(n)
print(x)
except:
 print('it is Impossible to lay down ', x, 'and', n)

I enter in cmd: pyinstaller -F "1.py"
I get this error:
5dfe5a09231fa982527042.png
April 3rd 20 at 18:57
1 answer
April 3rd 20 at 18:59
You probably typed the code in the Windows-1251? Try the same code to type in UTF-8 and all you get.
And how to understand what I'm coding gain? - Virginie.Robe commented on April 3rd 20 at 19:02
@Virginie.Robe, And which editor you are typing? - Torey76 commented on April 3rd 20 at 19:05
Sublime text 3 - Virginie.Robe commented on April 3rd 20 at 19:08
@Virginie.Robe, See here. - Torey76 commented on April 3rd 20 at 19:11

Find more questions by tags Python