Cannot import a library after installing it

Describe the bug
I activated a virtual environment, opened notebook server there and installed a library in the notebook, refreshed/restarted the kernel yet cannot import the library well (pandas).

Expected behavior
The library (pandas) should have been imported properly.


Desktop (please complete the following information):

  • OS: Linux Ubuntu 18.04
  • Browser: Google Chrome
  • Version 87

Try %pip install pandas instead. Check Installing Python Packages from a Jupyter Notebook | Pythonic Perambulations for more information.

1 Like