Could be missing dependencies or compilation. If your host is not Linux, that would explain the difference (e.g. if there are Mac wheels but not Linux ones). Might be some
pip parameter magic for that. If it’s an option (i.e. you don’t need dynamic package install for this step), modify the Dockerfile and bake as many dependencies as you can into the container.