[Python] GeoDjango - FileNotFoundError: Could not find module 'C:\OSGeo4W\bin\gdal304.dll' (or...

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install GeoDjango what turns out to be much harder than I thought. After I installed the OSGeo4W on my 64 Bit Windows 10 system I set everything up in the settings.py file but now I get this error:

    FileNotFoundError: Could not find module 'C:\OSGeo4W\bin\gdal304.dll' (or one of its dependencies). Try using the full path with constructor syntax.


    I also set the GDAL_LIBRARY_PATH but it just won't work.

    GDAL_LIBRARY_PATH = "C:\\OSGeo4W\\bin\\gdal304.dll"


    This is my C:\OSGeo4W\bin path and as you can see the gdal304.dll file is there

    [​IMG]

    My Python is on version 3.10.6 Django is on version 4.1

    I already tried to solve it by myself for a week but slowly I have no idea left on what to do

    Continue reading...

Compartilhe esta Página