title: Pandas Import Error when converting Python script to .exe with Pyinstaller
body: <p>I am currently trying to convert my Python script that automates an Excel task for my boss to an executable so that I can send it to him and he can use it without having Python installed. One of the libraries I used in the script is Pandas, and when I run the .exe after successfully building it, I get &quot;failed to execute script 'main' due to unhandled exception: No module named pandas.&quot;</p>
  <p>This is what I used to build the .exe:</p>
  <pre><code>pyinstaller --onefile -w main.py
  </code></pre>
  <p>Obviously I have Pandas installed on my machine and the script works perfectly fine when I run it normally, so I don't really know why I am getting this error especially since I thought the whole point of me converting the script to an executable was to get rid of the need for other packages to be installed.</p>
  <p>I have read other articles on here about a similar error relating to numpy, but none of the other solutions have helped me. I have tried doing --hidden-import pandas while building the executable and downgrading pandas to an older version, both to no success.</p>
  <p>Any suggestions with help!</p>