title: how to set the USE_PATH_FOR_GDAL_PYTHON=YES environment variable to feed the PATH into os.add_dll_directory()
body: <p>I've been running GDAL through python on anaconda for years with no problem. Today when I tried to import gdal I got this error code:</p>
  <blockquote>
  <p>On Windows, with Python &gt;= 3.8, DLLs are no longer imported from the
  PATH. If gdalXXX.dll is in the PATH, then set the
  USE_PATH_FOR_GDAL_PYTHON=YES environment variable to feed the PATH
  into os.add_dll_directory().</p>
  </blockquote>
  <p>I've been looking for a solution to this but can't seem to figure out how to fix this. Anybody has a solution?</p>