title: Pyinstaller executable only works on same machine [python]
body: <p>Why does my executable only work on the machine that produced it?  I'm using Python 3.7.1 and <code>pyinstaller</code> 3.4 on a MacOS Mojave 10.14.3. My simple program only imports random and my own modules that have no other dependencies.</p>
  
  <p>Here is the command I'm using to create the executable:</p>
  
  <pre><code>$ pyinstaller --onefile --windowed main.py
  </code></pre>
  
  <p>Here's the output:</p>
  
  <pre><code>112 INFO: PyInstaller: 3.4
  112 INFO: Python: 3.7.1
  134 INFO: Platform: Darwin-18.2.0-x86_64-i386-64bit
  135 INFO: wrote /Users/rahme/Desktop/Programming/Python/PokerHand/main.spec
  139 INFO: UPX is not available.
  141 INFO: Extending PYTHONPATH with paths
  ['/Users/rahme/Desktop/Programming/Python/PokerHand',
   '/Users/rahme/Desktop/Programming/Python/PokerHand']
  141 INFO: checking Analysis
  141 INFO: Building Analysis because Analysis-00.toc is non existent
  141 INFO: Initializing module dependency graph...
  143 INFO: Initializing module graph hooks...
  145 INFO: Analyzing base_library.zip ...
  2848 INFO: running Analysis Analysis-00.toc
  2876 INFO: Caching module hooks...
  2880 INFO: Analyzing /Users/rahme/Desktop/Programming/Python/PokerHand/main.py
  2890 INFO: Loading module hooks...
  2891 INFO: Loading module hook "hook-encodings.py"...
  2942 INFO: Loading module hook "hook-xml.py"...
  3131 INFO: Loading module hook "hook-pydoc.py"...
  3144 INFO: Looking for ctypes DLLs
  3144 INFO: Analyzing run-time hooks ...
  3150 INFO: Looking for dynamic libraries
  3219 INFO: Looking for eggs
  3219 INFO: Using Python library 
  /Users/rahme/Desktop/Programming/Python/PokerHand/env/bin/../.Python
  3221 INFO: Warnings written to 
  /Users/rahme/Desktop/Programming/Python/PokerHand/build/main/warn-main.txt
  3241 INFO: Graph cross-reference written to 
  /Users/rahme/Desktop/Programming/Python/PokerHand/build/main/xref-main.html
  3248 INFO: checking PYZ
  3248 INFO: Building PYZ because PYZ-00.toc is non existent
  3248 INFO: Building PYZ (ZlibArchive) 
  /Users/rahme/Desktop/Programming/Python/PokerHand/build/main/PYZ-00.pyz
  3522 INFO: Building PYZ (ZlibArchive) 
  /Users/rahme/Desktop/Programming/Python/PokerHand/build/main/PYZ-00.pyz completed successfully.
  3527 INFO: checking PKG
  3527 INFO: Building PKG because PKG-00.toc is non existent
  3527 INFO: Building PKG (CArchive) PKG-00.pkg
  5719 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
  5721 INFO: Bootloader 
  /Users/rahme/Desktop/Programming/Python/PokerHand/env/lib/python3.7/site-packages/PyInstaller/bootloader/Darwin-64bit/runw
  5721 INFO: checking EXE
  5722 INFO: Building EXE because EXE-00.toc is non existent
  5722 INFO: Building EXE from EXE-00.toc
  5722 INFO: Appending archive to EXE /Users/rahme/Desktop/Programming/Python/PokerHand/dist/main
  5754 INFO: Fixing EXE for code signing /Users/rahme/Desktop/Programming/Python/PokerHand/dist/main
  5759 INFO: Building EXE from EXE-00.toc completed successfully.
  5762 INFO: checking BUNDLE
  5762 INFO: Building BUNDLE because BUNDLE-00.toc is non existent
  5762 INFO: Building BUNDLE BUNDLE-00.toc
  5779 INFO: moving BUNDLE data files to Resource directory
  </code></pre>
  
  <p>Here is what gets put into my dist folder:</p>
  
  <p><a href="https://i.stack.imgur.com/o2gjG.png" rel="nofollow noreferrer">executables</a></p>
  
  <p>I can drag the one that looks like a terminal window into the terminal of the machine that created the executable and it'll run. However, if I try to run it on any other computer, including another Mac, I get nothing.  Am I doing something wrong?</p>