how to pip install in jupyter notebook code example

Example 1: install packages from jupyter notebook

!pip install package-name

Example 2: how to install jupyter notebook

#instead of useing Jupyter Use Google Collab
#there you don't even have to install anything
#GOTo : https://colab.research.google.com/

#but if you want Jupyter only use
pip install jupyter

Example 3: pip install safely in jupyter

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

Example 4: python pip jupyter notebook install

$ python -m pip install <package>

Tags: