[gdal-dev] Packages on PyPi vs. Ubuntu/Fedora

Sean Gillies sean at mapbox.com
Mon Sep 30 07:38:02 PDT 2019


Hi Stefan,

On Mon, Sep 30, 2019 at 6:03 AM Stefan Blumentrath <
Stefan.Blumentrath at nina.no> wrote:

> Hi Even,
>
> And thanks for your swift reply.
>
> If I install Python bindings like:
> pip3 install gdal==2.4.2
> installation works fine.
>
> However, if I then install nansat:
> pip3 install nansat
> then pip3 tries to re-install GDALs python bindings for GDAL version 3
> (which fails).

...



The nansat package does not specify a dependency on a specific gdal
version. See https://github.com/nansencenter/nansat/blob/master/setup.py#L58.
Pip should not attempt to upgrade gdal when installing nansat because 2.4.2
is already installed and meets the requirements.

$ pip -V
pip 19.2.3 from
/home/sean/.virtualenvs/nansat/lib/python3.6/site-packages/pip (python 3.6)
$ pip install gdal==2.4.2
$ pip install nansat
$ pip list
Package         Version
--------------- ---------
certifi         2019.9.11
chardet         3.0.4
GDAL            2.4.2
idna            2.8
nansat          1.2.2
numpy           1.17.2
Pillow          6.1.0
pip             19.2.3
pythesint       1.4.7
python-dateutil 2.8.0
PyYAML          5.1.2
requests        2.22.0
setuptools      41.2.0
six             1.12.0
urllib3         1.25.6
wheel           0.33.6
xdg             1.0.7

I think there is something else going on with your system. Do you have a
much older version of pip? Or is there a script that is executing `pip
install -U nansat`?

-- 
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190930/c3f5889b/attachment.html>


More information about the gdal-dev mailing list