r-barnes / richdem

High-performance Terrain and Hydrology Analysis
GNU General Public License v3.0
271 stars 70 forks source link

Problems with GDAL. Tried to install GDAL with pip but I couldn't #38

Open anyosa opened 4 years ago

anyosa commented 4 years ago

Hi, Do you have any advice to solve the GDAL problem? (I'm using macOS Catalina). Thanks!

shasta_dem = rd.LoadGDAL(dem_path) Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in shasta_dem = rd.LoadGDAL(dem_path) File "/usr/local/lib/python3.7/site-packages/richdem/init.py", line 255, in LoadGDAL raise Exception("richdem.LoadGDAL() requires GDAL.") Exception: richdem.LoadGDAL() requires GDAL.

giswqs commented 4 years ago

Try using conda to install it. You will need Anaconda or Miniconda installed on your computer.

conda create -n py38 python
conda activate py38
conda install -c conda-forge gdal richdem