Jupyter: install new modules

Johnathan picture Johnathan · Nov 30, 2016 · Viewed 55.6k times · Source

I have recently installed Anaconda with Python 3.5 and all the rest. I come from R where I am used to install packages dynamically. I am trying to install a module called scitools through jupyter notebook. I would like to recreate this in jupyter. However, I don't know how to dynamically install packages (if it's possible). I would greatly appreciate your help. Thank you!

enter image description here

EDIT: I am trying to use conda as recommended by the community, but it's not working. I am using mac OSX

enter image description here

Answer

AB Abhi picture AB Abhi · Oct 18, 2018

Check Jake Vander Plus Blog here to learn how to install a package with pip from Jupyter Notebook.

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