title: OSError when executing PyInstaller .exe file - "could not find or load spatialindex_c-64.dll"
body: <p>I'm trying to make an executable file using pyinstaller. When running the exe from the command line I get the error &quot;could not find spatialindex_c-64.dll&quot;.</p>
  <p>Things I have tried so far:</p>
  <ol>
  <li>Uninstall and reinstall rtree</li>
  <li>Create fresh environment, only installing packages with conda install (not condaforge)</li>
  <li>Importing rtree directly in my script</li>
  <li>Editing spec file following advice in <a href="https://stackoverflow.com/questions/64398516/pyinstaller-exe-oserror-could-not-find-or-load-spatialindex-c-64-dll">pyinstaller EXE OSError: could not find or load spatialindex_c-64.dll</a></li>
  <li>Editing spec file to specify rtree as hidden import</li>
  <li>Copying dll file over to dist directory</li>
  </ol>
  <p>Does anyone have any other suggestions on how to fix this?</p>