title: Pyinstaller with Anaconda 3 and Python 3.7 not working?
body: <p>I freshly installed Anaconda3 2019.10. Than installed some Python Libraries into it, which are requests, BeautifulSoup, PyInstaller.</p>
  
  <p>So the Base Environment from PyInstaller contains Python 3.7.4. As you can see from here:</p>
  
  <pre><code>(base) C:\&gt;python
  Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I had problems with Pyinstaller using a Specfile.
  So I tried to strip it down to a minimal demonstration and I found that even with the simplest Python script, I cannot build my Exe:</p>
  
  <p>Running:</p>
  
  <pre><code>pyinstaller ibGetRuntimes.py --onefile
  </code></pre>
  
  <p>ibGetRuntimes.py:</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  a = 1*1
  </code></pre>
  
  <p>This simple script obviously runs fun when I do <code>python ibGetRuntimes.py</code>.
  But when using Pyinstaller, this error pops up:</p>
  
  <p><a href="https://i.stack.imgur.com/jX5Dw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jX5Dw.png" alt="enter image description here"></a></p>
  
  <p>As it is a completely fresh Anaconda installation with freshly installed Pyinstaller, I'm struggling to find out the root cause. Couldnt't either find a solution via Google.</p>
  
  <p>Do you have any ideas?</p>
  
  <p><strong>EDIT</strong>
  Pyinstaller under my Python 2 environment which I created as well works fine.</p>
  
  <p>Thanks!</p>