Search code examples
python-3.xpipjupyter-notebookgoogle-cloud-datalab

ImportError: No module named 'urllib3' in Jupyter notebook


I have a Jupyter notebook (in Google Cloud Datalab) with a python3 kernel. In that notebook

import urllib3

produces ImportError: No module named 'urllib3', but

%%bash
pip list | grep urllib3

produces urllib3 (1.22). What is going on here? Why can I not import from urllib3 in this notebook?


Solution

  • Try pip3 to see all python3 packages