I don't know if this question is asked before, but I couldn't find anything similar. Some python site packages (i.e. pytube) are updated fairly often and the old versions become non-functional. updating them is no problem, but what can I do when pyinstaller is used to create applications other than re-running pyinstaller on the scripts which is not possible since the client may not have python installed. Since the application is not onefile
type, can I update the package just by changing some of the python extensions in the dist folder created by pyinstaller and how to get those extensions? Thank you!
Asked
Active
Viewed 152 times
0

Saikat Chakraborty
- 108
- 1
- 9
-
Why not create updated versions of your file so that the users can download latest versions of it? – Swagrim Dec 18 '21 at 10:44
-
@Swagrim the main file is huge. Besides won't an Auto-Update application be more fun? – Saikat Chakraborty Dec 18 '21 at 10:57
-
What if distribute the file once again (but the last time) by creating you executable file using py2exe? Then you can use esky to auto update... – Swagrim Dec 18 '21 at 11:03
-
Or maybe use updater4pyi-- `pip install updater4pyi`? – Swagrim Dec 18 '21 at 11:04
-
@Swagrim I'm not familiar with py2exe. Is it better? – Saikat Chakraborty Dec 18 '21 at 11:07
-
1Found a [post](https://stackoverflow.com/questions/20617997/auto-updating-a-python-executable-generated-with-pyinstaller) related to it – Swagrim Dec 18 '21 at 11:17
1 Answers
1
As per your comment, maybe yes, maybe no. Most people say pyinstaller is better than py2exe as it has many features like onefile, noupx etc. while py2exe hasn't. If you are not using any such options in pyinstaller, you can use py2exe by creating another file called setup.py and typing in:
import py2exe
from distutils.core import setup
setup(console=["<your filename with its extension(.py)>"])
This creates your executable, without any options.
Then you can use Esky to make it auto-updateable. I have no Idea of how to use esky actually, but it does work.

Swagrim
- 422
- 4
- 17