samsonite Wrote:Just done, unsuccessfully (many .dll's) with 3.5.1 version, as follows, and I have some doubts that something changes with 3.7.Had you look at my run in my previous post.
pyinstaller --onefile --console power.pyIs the same as @Axel_Erfurt postet so
-F
is the same as --onefile
.Upgrade your Python version,do not use Python 3.4 anymore.
Python 3.6/3.7 and pip installation under Windows
A carrot for upgrade is that you can use
f-string
.>>> print(f"Sammy has {4:4} red and {16:16}! blue balloons") Sammy has 4 red and 16! blue balloons >>> # f-strings support any Python expressions inside the curly braces >>> name = 'f-string' >>> print(f"My cool string is called {name.upper()}.") My cool string is called F-STRING. >>> a, b = 5, 7 >>> f'{a}/{b} = {a/b:.2}' '5/7 = 0.71' >>> for word in 'f-strings are awesome'.split(): ... print(f'{word.upper():~^20}') ~~~~~F-STRINGS~~~~~~ ~~~~~~~~ARE~~~~~~~~~ ~~~~~~AWESOME~~~~~~~