title: Python - Pyinstaller - Import selenium webdriver
body: <p>I tried to compile a python file from PyCharm and got different errors in the warning.txt file.</p>
  
  <p>This are my imports I use in my File:</p>
  
  <pre><code>from selenium import common
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.chrome.options import Options
  </code></pre>
  
  <p>This is the error in "build/filename/filename.txt</p>
  
  <pre><code>missing module named 'selenium.webdriver' - imported by C:\Users\Raphael\PycharmProjects\InstaBot\InstaBot_2_0.py (top-level)
  missing module named selenium - imported by C:\Users\Raphael\PycharmProjects\InstaBot\InstaBot_2_0.py (top-level)
  </code></pre>
  
  <p>How can i solve that?
  I put the chrome- and geckodriver.exe in the folder, where the FILENAME.exe was.</p>
  
  <p>I tried different approaches:</p>
  
  <ul>
  <li>hidden import selenium</li>
  <li>add selenium as binary</li>
  <li>took the --onefile flag and still get the Error</li>
  </ul>
  
  <p>I found and tried this posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/25733467/no-module-named-when-using-pyinstaller">No module named when using PyInstaller</a></p>
  
  <p><a href="https://stackoverflow.com/questions/39563851/how-to-include-chromedriver-with-pyinstaller">How to include chromedriver with pyinstaller?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7436132/pyinstaller-spec-file-importerror-no-module-named-blah">PyInstaller, spec file, ImportError: No module named 'blah'</a></p>
  
  <p>Thanks for reading this and have a nice day!</p>
  
  <p>I use:</p>
  
  <ul>
  <li>PyCharm: 2020.1</li>
  <li>Python 3.7, Anaconda</li>
  <li>Chromedriver 81.0.4044.69</li>
  <li>PyInstaller: 3.6</li>
  <li>Selenium: 3.141.0</li>
  </ul>