1.
Download proj-6.2.1.tar.gz, tar xvf proj-6.2.1.tar.gz ./configure make make install
Download geos-3.7.3.tar.bz2, tar xvf geos-3.7.3.tar.bz2 ./configure make make install
Download GDAL-3.0.4.tar.gz, tar xvf GDAL-3.0.4.tar.gz ./configure make make install
2.
export CPLUS_INCLUDE_PATH=/usr/include/gdal export C_INCLUDE_PATH=/usr/include/gdal pip install GDAL==3.0.4
3.
在~/.bashrc中加入一行:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
然后执行source ~/.bashrc
问题解决