I start my jupyter notebook with python2 as:
jupyter notebook nameofnotebook
Then I want to import library like this:
import scipy
But I have an error telling that there is no such library.
So I execute in the notebook cell:
!pip2 install scipy Requirement already satisfied: scipy in /usr/local/lib/python2.7/dist-packages How to install package correctly to jupyter kernel?
import sys; print(sys.path);to see where the running jupyter python kernel is looking for installed modules.