How to use pyInstaller to completely pack all the necessary Library?
Question: I have already used pyinstaller to create a standalone aplication of my python
aplication

    
    
    pyinstaller --windowed app.py
    

and it actually run in my computer and work just as intended, but when I tried
it on my friend's computer, it didn't work. It runs but somehow it can't
process the text.

here are the library used:

    
    
    import tkinter as Tk
    import tkinter.ttk as ttk
    import tkinter.scrolledtext as ScrollTxt
    from tkinter import END,E,W,filedialog,messagebox
    from nltk.tokenize import sent_tokenize, RegexpTokenizer, word_tokenize
    import math
    import fileinput
    from textblob import TextBlob as tb
    from nltk.tag import pos_tag, map_tag
    from nltk.corpus import stopwords
    

if you want to see the result file:
<https://www.dropbox.com/s/mfdnaaoik7w0r23/TextSummaryV73.rar?dl=0>

anybody knows what's wrong or what's missing?

I think it's either nltk or textblob, can anyone help how to add these files
into the package?

**EDIT:** I have added nltk and textblob into the Python Application's
directory using spec files. now the problem is, how to make the program know
that these two imports are already inside the directory?


Answer: I believe the command you are looking for is --onefile. This packages all
required packages into the executable. [This
guide](https://mborgerson.com/creating-an-executable-from-a-python-script)
should help you.

    
    
    pyinstaller --onefile --windowed app.py
    

If you have any external files that are required by the script this makes the
process a bit more difficult as you will need to change your references to
their location. [This
answer](http://stackoverflow.com/questions/7674790/bundling-data-files-with-
pyinstaller-onefile) or [this
one](http://stackoverflow.com/questions/19669640/bundling-data-files-with-
pyinstaller-2-1-and-meipass-error-onefile) can help with that

