Skip to content
Advertisement

installing Gdal on Windows 10 with python 3.6.4: fatal error C1083: Cannot open include file: ‘cpl_port.h’

So I am trying to pip install gdal but got an error.

JavaScript

So I am running the following:

  • Python 3.6.4 anaconda distribution
  • Windows 10 (x64)
  • Microsoft Visual 2017 Redistribute both x64 and x86 (both installed by the vs builder tool)

MS Visual was installed because of this error before

JavaScript

Here is the trace log for the error:

JavaScript

Any ideas how to fix this? I just want use the ogr2ogr in gdal to convert .shp to GeoJSON then to topojson.

Advertisement

Answer

I had the same problem and found the solution here: gdal-installation-error-using-pip

That is: download the wheel file and install from the command line.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement