For pip, you can specify the Python executable explicitly: or, to automatically use the correct executable (again using notebook shell syntax). Here is a short snippet that should work in general: That bit of extra boiler-plate makes certain that conda installs the package in the currently-running Jupyter kernel (thanks to Min Ragan-Kelley for suggesting this approach).