I answer myself. I found that I could directly use pip. The command
sage -pip install jupyterlab_widgets