Skip to content

the influence for limit the memory of the python interpreter to use pyinstaller #6211

Answered by bwoodsend
zfy108 asked this question in PyInstaller
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zfy108
Comment options

@bwoodsend
Comment options

@rokm
Comment options

rokm Sep 15, 2021
Maintainer

@zfy108
Comment options

@zfy108
Comment options

Answer selected by zfy108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants