Python library is such a messy topic that needs an individual blog.

Install Python libraries in Jupyter-Notebook

# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install gym