Python Forum
Python to exe-Does it do Pip installs?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python to exe-Does it do Pip installs?
#1
Hello,

I'm have a python script that currently uses PyQt5 for the GUI, and I'm wondering if I wanted to make it an exe file down the road, will it automatically pip install PyQt5 on a pc that doesn't have it so the program can run? Or would the user have to manually download(pip install) it?
Reply
#2
(May-12-2022, 08:12 PM)Extra Wrote: will it automatically pip install PyQt5 on a pc that doesn't have it so the program can run? Or would the user have to manually download(pip install) it?
It look at PyInstaller that is good option for this.
So will PyInstaller look and find all the import statements in your script.
The go down the tree and include all needed in the build.
PyInstaller Wrote:PyInstaller also knows about many major Python packages,
including the GUI packages Qt (imported via PyQt or PySide), WxPython, TkInter, matplotlib, and other major packages.
For a complete list, see Supported Packages.
So the the point is that users shall not at all do install of 3-party installation or the need to have Python on there OS.
Also add all files that not Python eg images,sound,icon...ect to the build.
A example here.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  scipy looks like it installs, but does not Skaperen 6 1,058 Jan-22-2024, 06:26 AM
Last Post: Skaperen
  listing file that pip installs upgrades Skaperen 1 1,913 Dec-10-2020, 10:37 AM
Last Post: snippsat
  Why isnt this working? pip installs not working with cmd prompt? ejected 2 3,218 Apr-02-2019, 08:48 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020