+ 1

Using Packages Without Having Them - Python

Let's say that I made a game and I sent the .py file to a friend. The code includes usage of various packages, does my friend need to download all the packages in addition to the python interpreter ?

8th May 2021, 4:18 PM
Yahel
Yahel - avatar
2 Antworten
+ 2
Yes it's possible to share your code with pyinstaller! it's a module that you install with pip. python -m pip install pyinstaller after you have it installed, use it in your working directory: python -m pyinstaller main.py It will genetate a dist folder containing all the dependencies required by your python program, there will be an executable in it. You can read more on it here: https://www.pyinstaller.org/
8th May 2021, 4:25 PM
Apollo-Roboto
Apollo-Roboto - avatar
0
Yes because the packages installed is in your local system. If it was present by default in the interpreter itself then the case is different.
8th May 2021, 4:20 PM
Aditya
Aditya - avatar