How To Install Python Package From Jupyter Notebook

07 Nov · by Tim Kamanin · 1 min read

So you're lazy like me and want to PIP install Python packages directly from Jupyter Notebook?

Congratulations, it's possible!

Add this code to a jupyter notebook cell, execute the cell and you're ready to go:

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

Enjoy!

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials

Comments