0

I've managed to make a single working executable file (for Windows) from a PyQt based Python app using PyInstaller, but is it also possible for Linux? On linux machine (LUbuntu), when I run the .py script, I've got errors about missing PyQt bindings and I can't even download them by apt-get because of inability to connect the servers. It would be much more convenient to somehow pack the missing libraries to my program's files in order to make it more portable, but how can I do it?

van_folmert
  • 4,257
  • 10
  • 44
  • 89
  • It probably is more difficult that you think and may not worth the effort. Request your users to install relevant packages from their Linux distribution. Maybe package your program as a distribution package (e.g. a `.deb` or `.rpm` file). – Basile Starynkevitch Mar 30 '13 at 07:38
  • This doesn't make sense. Do you expect to distribute your application in CD/DVD? Because otherwise, to download it, the users *will* have internet, hence they can download dependencies. – Bakuriu Mar 30 '13 at 08:58

1 Answers1

0

If you package your application in the Linux distribution's package format, it can contain dependency information. That is the canonical solution to this problem.

Otherwise you'd have to include all nested dependencies to make sure that it'll work.

Roland Smith
  • 42,427
  • 3
  • 64
  • 94