pip install from Jupyter Notebook

Did you know you can run pip from the Jupyter Notebook?

Example:

%pip install selenium


will run as a shell comand so that you don’t have to fire up Terminal

In older anaconda versions:

import sys
!{sys.executable} -m pip install selenium

would work

Leave a Reply

Your email address will not be published. Required fields are marked *