How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook

About this article

I dropped Selenium with pip3, but when I opened Jupyter Notebook, I was addicted to the following error, so I wrote an article about how to deal with it.

image.png

reference

In python package storage location, I somehow realized that the PATH of the package location is not in the PATH. I tried it through the path in PATH on Mac, but it didn't work.

Therefore, this time I solved it by myself, so I will explain how to do it below.

Research of cause

First, on the console, I hit the command pip3 show [Package Name] to see where Selenium was. image.png

The place of Location: is the place where Selenium is dropped. In my case, it seems to be in / usr / local / lib / python3.7 / site-packages.

Next, I opened Jupyter Notebook and checked the PATH that I was passing through with the following command. (I put a mosaic on my user name.) image.png

Looking at this, you can see that /usr/local/lib/python3.7/site-packages is missing.

solution

I tried to specify the PATH by referring to Put the PATH on Mac, but it didn't work, so execute the following command in Jupyter Notebook. I ran it.

image.png

Now ʻimport selenium` has run without error.

Finally

This is how to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook.

Recommended Posts

How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to import NoteBook as a module in Jupyter (IPython)
How to import NoteBook as a module in Jupyter (IPython)
How to execute commands in jupyter notebook
ModuleNotFoundError in Python: No module named story
How to resolve SSL module errors in Anaconda environment
Resolve No module named tkinter
How to use Jupyter Notebook
ModuleNotFoundError in poetry: No module named'setuptools'
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
Today's python error: ModuleNotFoundError: No module named
Today's python error: ModuleNotFoundError: No module named
How to use jupyter notebook with ABCI
ModuleNotFoundError: No module named'***' when running Flask
Jupyter Notebook Basics of how to use
How to use Jupyter notebook [Super Basic]
How to revive cells in iPython notebook
How to resolve "No kernel of grammar Python found" error in Atom
How to hide warnings that do not affect execution in Jupyter Notebook
How to debug with Jupyter or iPython Notebook
ModuleNotFoundError: No module named'_bz2' error in pyenv Python
Import cv2 ModuleNotFoundError: No module named'cv2' in python3
How to write a named tuple document in 2020
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
[EC2] How to deal with errors that selenium cannot execute (No module named selenium)
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
How to make the font width of jupyter notebook put in pyenv equal width
How to run the Ansible module added in Ansible Tower
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
How to instantly launch Jupyter Notebook from the terminal
ModuleNotFoundError: No module named'flask_sqlalchemy'
How to use jupyter lab in Windows 10 local environment
How to view progress bar on Jupyter Notebook to see progress
What to do if you get Swagger-codegen in python and Import Error: No module named
How to see the contents of the Jupyter notebook ipynb file
Unable to display tensorboard in jupyter notebook on docker (solved)
[IPython] How to Share IPython Notebook
Introduced Jupyter Notebook to CentOS 7
[Python] ModuleNotFoundError: No module named'urlparse'
Display HTML in Jupyter notebook
How to change Jupyter layout
Multiprocessing error in Jupyter Notebook
How to use IPython Notebook
How to develop in Python
How to batch start a python program created with Jupyter notebook
Resolve garbled Japanese characters in matplotlib of Jupyter Notebook on Docker
How to use jupyter notebook without polluting your environment with Docker
Why ModuleNotFoundError: No module named'dataset.mnist' appears in "Deep Learning from scratch".
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to use the optparse module
Python error: ModuleNotFoundError: No module named'flask'
How to use classes in Theano
How to write soberly in pandas
How to collect images in Python
How to update Spyder in Anaconda
How to use SQLite in Python
How to use Python's logging module