the influence for limit the memory of the python interpreter to use pyinstaller #6211
Answered
by
bwoodsend
zfy108
asked this question in
PyInstaller
-
my program depends on large memory, before using pyinstaller, there is some questions for memory error(1.0G), after using pyinstaller, there is no question any more (1.5G). after using pyinstaller ,my program can run successfully. but i don't konw why. |
Beta Was this translation helpful? Give feedback.
Answered by
bwoodsend
Sep 15, 2021
Replies: 1 comment 5 replies
-
I can't reproduce this. Can you give an example piece of code that does? My own attempt to reproduce this (below) works perfectly ok. # test.py
# Allocate 10GB of memory.
a = bytes(10_000_000_000)
print(f"`a` is {len(a):3,} bytes in size.") > pyinstaller test.py
...
> ./dist/test/test
`a` is 10,000,000,000 bytes in size. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
zfy108
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't reproduce this. Can you give an example piece of code that does? My own attempt to reproduce this (below) works perfectly ok.