I have seen few questions related to this problem but nothing helps. I tried to uninstall rtree and download a .whl file but after installation error was similiar but spatialindex_c-64.dll was substituted with spatialindex_c.dll
If somebody have any ideas i can send a full code of .py program!
Thank for response!
You just need to do what it’s telling you. It’s expecting a dll called spatialindex_c-64.dll which PyInstaller failed to detect - you’ll need to explicitly tell it to include it. No use ripping up your Python installation. Find where it is one your computer, then add the --add-data=C:\path\to\spatialindex_c-64.dl;. (note the trailing ;.) option to your build command.
Ah, I see. It’s got two of them and a rather messy way of finding them. For this you have to use the spec file. Find the test.spec (or whatever you called your code) and put
from PyInstaller.utils.hooks import collect_dynamic_libs
at the top. And in the a = Analysis(...) bit change binaries=[], to binaries=binaries=collect_dynamic_libs("rtree"),. Then rebuild from the spec file using PyInstaller test.spec.