You probably have a different Python interpreter in Jupyter.
Can you print the paths on the command line and on Jupyter?
import sys
print('__Python VERSION:', sys.version)
print(sys.path)

Also run this in Jupyter:
! which python