gogogo
gogogo

Reputation: 539

One program with all necessary modules

I have a GUI and it is using PyQt5 and Python 3.6... I create this GUI by .exe format with pyinstaller When I click the .exe file it works correctly and succesfully. But How can I do the all what I need module and packet include onefile. For example there is another computer (Windows) havent any python3.6 and pyqt5 how can I install this module and packet just one click.

Upvotes: 2

Views: 485

Answers (2)

joeyipanimation
joeyipanimation

Reputation: 316

PyInstaller or not, you can create some form of requirements.txt (in fbs it is usually structured in ./requirements/base.txt (with mac.txt and windows.txt as more specialized, platform-specific flavors to supplement the base.txt file).

This is currently my workflow to build & distribute fbs/PyQt5/python36 apps for macOS and win10, and collaborate with others who need to stay up-to-date & version-tied with various python libraries.

Besides, having all dependencies specified in ./requirements/base.txt is better/built-in project portability & documentation. Use the *.txt file like this: pip install -r ./requirements/base.txt

An example .txt looks like this:

fbs
PyQt5==5.9.2
PyInstaller==3.4
google-cloud-storage

Upvotes: 1

Karl Olufsen
Karl Olufsen

Reputation: 186

I have successfully used fbs for that very purpose, you can give it a try.

Upvotes: 1

Related Questions