I'm trying to make an executable file using pyinstaller. When running the exe from the command line I get the error "could not find spatialindex_c-64.dll".
Things I have tried so far:
- Uninstall and reinstall rtree
- Create fresh environment, only installing packages with conda install (not condaforge)
- Importing rtree directly in my script
- Editing spec file following advice in pyinstaller EXE OSError: could not find or load spatialindex_c-64.dll
- Editing spec file to specify rtree as hidden import
- Copying dll file over to dist directory
Does anyone have any other suggestions on how to fix this?