[gdal-dev] Unable to install GDAL on macOS with pip

Marius Kreß kress.marius at icloud.com
Mon Jan 11 10:00:50 PST 2021


Dear GDAL developers and users,

I am unable to install GDAL on my Mac. I have set up Python with pyenv. When I enter pip install gdal I get a lot of exceptions that always end with FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config‘ or  FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config‘ The very last line says Could not find gdal-config. Make sure you have installed the GDAL native library and development headers. But that’s what I try to do, right?

When I download the package from http://download.osgeo.org/gdal/ and try to install it with pip install gdal-3.2.1.tar.gz I get the error message:

ERROR: Command errored out with exit status 1:
     command: /Users/marius/.pyenv/versions/3.9.0/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/99/kr62vcdn1nq7b376wln_0r6m0000gn/T/pip-req-build-hmpof14i/setup.py'"'"'; __file__='"'"'/private/var/folders/99/kr62vcdn1nq7b376wln_0r6m0000gn/T/pip-req-build-hmpof14i/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/99/kr62vcdn1nq7b376wln_0r6m0000gn/T/pip-pip-egg-info-3inooqvl
         cwd: /private/var/folders/99/kr62vcdn1nq7b376wln_0r6m0000gn/T/pip-req-build-hmpof14i/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/marius/.pyenv/versions/3.9.0/lib/python3.9/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/99/kr62vcdn1nq7b376wln_0r6m0000gn/T/pip-req-build-hmpof14i/setup.py'

Do you have any idea what could be the problem? There are no installation instructions on the website, so I assumed it can be installed with pip just like any other package.

Best regards,

Marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210111/b480ae9c/attachment-0001.html>


More information about the gdal-dev mailing list