Pip seems to be out of date in container

Hi all,

I’m trying to install scipy==1.8 with pip inside a docker container.

docker run -ti quay.io/fenicsproject/stable:latest
pip install scipy==1.8

I get the following error:

ERROR: Could not find a version that satisfies the requirement scipy==1.8 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4)
ERROR: No matching distribution found for scipy==1.8
WARNING: You are using pip version 19.3.1; however, version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

So it seems that pip is somehow outdated.

I tried running:

python3 -m pip install scipy==1.8

but got the same error message.

Even after upgrading pip with:

python3 -m pip install --user --upgrade pip

I get the same error message.

Does anyone have an idea?

Cheers
Rem

Scipy 1.8.0 requires Python<=3.8. As far as I can recall the quay images uses Python 3.6

Ah ok that would make sense. Thanks!

I guess there’s no way of upgrading python in the docker image is there?

No, i dont think there is an easy way of doing that.

Gotcha, switching to conda then :wink:

Ultimately, I should switch to Dolfinx…