import sys
!{sys.executable} -m pip install <package>
import sys
!conda install --yes --prefix {sys.prefix} <package>
Check this article for more details: http://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/
import sys
!{sys.executable} -m pip install <package>
import sys
!conda install --yes --prefix {sys.prefix} <package>
Check this article for more details: http://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/