I have some directories in PATH that contain different versions of GDAL (I know removing them from PATH would fix this issue). Looking into osgeo/init.py I can see that these directories are added ...
>>> from osgeo import gdal Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/GDAL-3.6.0-py3.10 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results