During the superbuild process, Python and the necessary packages are installed. However, within my Docker container, I wish to use my own Python. To achieve this, I typically set USE_SYSTEM_python3=OFF.
Subsequently, I’ve observed that none of the Python packages (such as ‘pathlib’) are installed, as my Python environment is a basic, unmodified (‘vanilla’) version.
Is there an efficient method to install the Python packages specified in the superbuild onto the system-provided Python?
Well, that tells the superbuild to build its own copy. If you want to use a Python install the superbuild doesn’t build itself, you want to turn USE_SYSTEM_python3=ON.