Environment: IMac version 10.15.7

I'm a python beginner.

Create a virtual environment with anaconda, use Jupyter Notebook in that environment,
When I tried to import janome that had pip installed in advance, the following error text appeared.

ModuleNotFoundError Traceback (most recent call last)
---->1 from janome.tokenizer import Tokenizer
ModuleNotFoundError: No module named'janome'

janome is a virtual environment terminal and exists in the pip list.

I went to a bookstore in Tokyo yesterday and searched for a book with a solution, but I'm in trouble because there is no book that deeply mentions using pip in the anaconda environment. I would appreciate it if anyone could teach me.

  • Answer # 1

    Is it installed in the Python you are trying to use?
    There are a lot of pythons installed, and even if you install it on some Python, it can not be used on other Pythons.

  • Answer # 2

    Is the kernel of the running jupyter notebook the one in the virtual environment where janome is installed? Please check again. If not, change to a virtual environment with janome installed.