Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

Got this solution from stackoverflow. 

I got same error.

django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.
First, insall OSGeo4W , and then add following code in your settings.py.

import os
if os.name == 'nt':
    import platform
    OSGEO4W = r"C:OSGeo4W"
    if '64' in platform.architecture()[0]:
        OSGEO4W += "64"
    assert os.path.isdir(OSGEO4W), "Directory does not exist: " + OSGEO4W
    os.environ['OSGEO4W_ROOT'] = OSGEO4W
    os.environ['GDAL_DATA'] = OSGEO4W + r"sharegdal"
    os.environ['PROJ_LIB'] = OSGEO4W + r"shareproj"
    os.environ['PATH'] = OSGEO4W + r"in;" + os.environ['PATH']
and run python manage.py check if you got the error still, please go to C:OSGeo4W64 or C:OSGeo4W. There you can find gdalxxx.dll. please rename the file name to 'gdal202' or 'gdal203' in error message. Please run python manage.py check, That must work.
Comment

PREVIOUS NEXT
Code Example
Shell :: install get cli 
Shell :: github add directory to repository 
Shell :: git revert last commit 
Shell :: get path of command 
Shell :: git lost changes after reset --keep 
Shell :: move multiple files with a single mv command 
Shell :: install docker ec2 
Shell :: installing scoop for windows 
Shell :: npm install strapi 
Shell :: installing rabbitmq on debian 
Shell :: ubuntu wsl go to desktop 
Shell :: cp folders 
Shell :: bash tokens in variable 
Shell :: web 3 react npm 
Shell :: ubuntu create directory with permissions 
Shell :: how do I run a container in docker using a dockerfile 
Shell :: stop tracking git pattern 
Shell :: create folder in terminal 
Shell :: scp linux file to windows from windows. 
Shell :: password generator bash 
Shell :: github restore previous commit 
Shell :: ngb-tabset install 
Shell :: tree command 
Shell :: how to start conda powershell windows 
Shell :: linux check ssh connections 
Shell :: bash script to clean up log files 
Shell :: delete a github repository using curl 
Shell :: set github ssh key 
Shell :: expo init 
Shell :: kubectl get namespaces command 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =