Am 31.03.20 um 18:01 schrieb Zouhair Mahboubi:
you can see that pip3 freeze is only showing numpy, which when imported is fine, but importing graph_tool fails. I ran the docker image to inspect, and this is the problem I think: it looks like that doing |apt-get install -y python3-graph-tool| is installing it for the /usr/bin/python3.7, but the python (and pip) versions visible in the PATH to docker is in /usr/local/bin. I am not sure why this would be behaving differently now…
You already identified the problem. The Debian package for graph-tool installs it in the system version of python (in /usr), as it should, but you are using a different Python installation (in /usr/local). This is not a bug. If you want to use parallel python installation, you need to install packages for that, like you did using pip for numpy. I suggest you use the debian:buster docker image, not python:3.7-slim, since they have the same underlying Python version and things will behave more as you are expecting. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>