E
E
Evgeny Lavrov2019-12-21 20:46:04
Mikrotik
Evgeny Lavrov, 2019-12-21 20:46:04

Why can't I convert py to exe?

I'm trying to convert py to exe using pyinstaller, but I keep getting an error
Example:

x = 0
for i in range(10):
    n = input('Введите цифру: ')
    try:
        x += int(n)
        print(x)
    except:
        print('Невозможно сложить ', x, 'и', n)

I enter in cmd: pyinstaller -F "1.py" I get an
error:
5dfe5a09231fa982527042.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2019-03-02
@maxzhurkin

To "forward" the port, you need the corresponding rule (dstnat) in the NAT section + the rule by which return traffic will go, for example, srcnat or masquerade in the same place

V
Vadim Priluzkiy, 2019-12-21
@Oxyd

You probably typed the code in Windows-1251 encoding? Try to type the same code in UTF-8 and you will succeed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question