title: Using pyinstaller with anaconda environment
body: <p>I have a very simple application made on <code>python(v 3.6)</code>, and I wanted to freeze it using pyinstaller.I have made the app using an environment created with anaconda, and I installed there the packages I needed(youtube_dl). I need help on how to use pyinstaller for my app(Main.py) using the environment I created with all its packages inside it.
  If I run "pyinstaller Main.py" I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "Main.py", line 7, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
      exec(bytecode, module.__dict__)
    File "youtube_downloader.py", line 3, in &lt;module&gt;
  ModuleNotFoundError: No module named 'youtube_dl'
  [2708] Failed to execute script Main
  logout
  </code></pre>
  
  <p>How can I make pyinstaller use the environment I created at anaconda´s directory?</p>