install packages pip python on jupyter code example
Example 1: how to install packages from jupyter notebook
import sys
!conda install --yes --prefix {sys.prefix} <package-name-here>
Example 2: pip install safely in jupyter
# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy