title: Selenium and python : "Message: 'geckodriver' executable needs to be in PATH. "
body: <p>I was recently working with web automation, with Selenium and python, and  I faced into the error almost everyone got.</p>
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  
  window = webdriver.Firefox()
  window.get(&quot;https://ecoledirecte.com&quot;)
  </code></pre>
  <p>But I looked up for several answers, and None of them worked ! I tried the solution for <a href="https://stackoverflow.com/questions/60335998/selenium-webdriverexception-message-geckodriver-executable-needs-to-be-in-pa">this</a> question, but nothing changed. I checked several times, and the geckodriver is in PATH (I extracted the file into my Downloads folder, then moved the executable into my main folder). I checked if indicating the mozilla geckovriver folder in the calling of <code>webdriver.Firefox()</code> would help (<code>webdriver.Firefox(&quot;C:\\Users\\user\\Downloads\\mozilla-geckodriver-9b5f85c&quot;)</code>), but no.</p>
  <p>Is there any reason for that ?</p>