How to package up a Python 3 script with modules
Posted
by
Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2013-10-28T00:44:10Z
Indexed on
2013/10/28
3:54 UTC
Read the original article
Hit count: 300
I created a small script that uses a few 3rd-party modules. I'm not sure how to distribute it. I tried Pyinstaller, but that doesn't seem to work. It can't find the modules. When I give the binary to a co-worker, it says it is looking for files in my home directory ( not his ) and dies. I have found that Pyinstaller is not able to find most modules. I am running Python 3 and installed Pyinstaller with pip from Python 2. It did not work trying to use pip from Python 3. When, I give it a path to my modules, it complains that they are python 3 modules. Just looking for some clarification. Ultimately, I'd like to run this on a linux or OS X box where python and my modules probably won't be installed. I just started Python yesterday and have a ton to learn.
© Stack Overflow or respective owner