Search code examples
pythonpandasjupyter-notebookubuntu-18.04python-module

Jupyter Notebook does not import any module


ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-c1d07d468637> in <module>
----> 1 import requests
      2 

ModuleNotFoundError: No module named 'requests'
  • I first installed a module and was wondering why it was not working.
  • Then I tried with modules that ought to be installed, like pandas and requests.
  • On all modules, I get the same issue.
  • Then I checked if the modules really are not installed, or if they are not in the proper folder
  • After that, I uninstalled and reinstalled anaconda

Nothing worked so far. I appreciate any help

Jupyter error message:

Jupyter error message

Pip installed modules:

Pip installed modules


Solution

  • I think you are installing your modules on a vitualenv and the Jupyter notebook is running outside the virtualenv.

    This happened to me once.