title: Pyinstaller fails to import site module in python3 on MacOSX
body: <p>I am trying to package (freeze) a python3 application using pyinstaller (ver. 3.3.1)</p>
  
  <p>After running <code>pyinstaller my_script.py</code> it fails with a list of import errors, the first of which is the following:</p>
  
  <pre><code>292 INFO: checking Analysis
  292 INFO: Building Analysis because out00-Analysis.toc is non existent
  292 INFO: Initializing module dependency graph...
  298 INFO: Initializing module graph hooks...
  299 INFO: Analyzing base_library.zip ...
  Failed to import the site module
  Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site.py", line 544, in &lt;module&gt;
  main()
  ...
  </code></pre>
  
  <p>...and continues with a longer list of import errors
  It could be it is a problem with my python3 configuration, or pyinstaller spec file.
  I am using at present the default pyinstaller spec file.
  Following is the system I am testing:</p>
  
  <ul>
  <li>MacOSX 10.13.3 (High Sierra)</li>
  <li>Python 3.6.4 (installed using brew)</li>
  <li>pyinstaller 3.3.1 (installed using pip)</li>
  </ul>
  
  <p>Thanks a lot for all your kind help.</p>