I asked this question before realising this site existed:
I've installed GDAL 2.3.1 using pip on a ubuntu 16.04 in a python environment. The package is in the correct site-packages directory and yet when I run a python script, I receive this error:
Error 1: NUMPY driver was compiled against GDAL 2.3, but the current library version is 2.2
The error then ends in a segmentation fault.
When using 'gdal-config --version', the output shows '2.2.2'.
I want to know how to change the version of gdal that linux appears to be using from 2.2.2 to 2.3.1 but I have no idea how to do this.
Any help would be greatly appreciated!