Add your virtual environment as Python kernel in this way (Make sure it's activated):

(venv)
$ ipython kernel install --name "local-venv-kernel" --user

Now, you can select the created kernel "local-venv-kernel" when you start Jupyter notebook or lab.

You could check the installed libraries using this code in a notebook cell:

!pip freeze 
Answer from negas on Stack Overflow
🌐
HAR Data Extractor
jonathansoma.com › course › foundations-2021 › jupyter-module-not-found
Fixing Module Not Found errors with Jupyter notebook
For example, ModuleNotFoundError: ... talk about what is going on. If you’re getting ModuleNotFoundError in Jupyter, first double-check that you installed the package with pip install....
Discussions

Python in terminal finds module, jupyter notebook does not
Hi, I am in a situation where python, in a terminal, finds a module with “import”. In fact, with “print(help(‘modules’)” I see a list of all available modules, and the module in question is listed. However, when running a jupyter notebook, of the proper version of python, I always ... More on discourse.jupyter.org
🌐 discourse.jupyter.org
11
0
September 29, 2019
Module Not Found
I literally install it the line before importing pandas. What could be the reason? More on discourse.jupyter.org
🌐 discourse.jupyter.org
1
0
February 6, 2024
Installed modules cannot be imported (ModuleNotFound error)
It seems I am not the first one with this issue, however, the other solutions I found around the web (stackoverflow, github issues list, medium blog posts) don't solve my issue. I have created ... More on github.com
🌐 github.com
7
October 9, 2018
python - Module not found during import in Jupyter Notebook - Stack Overflow
I have the following package (and working directory): WorkingDirectory ├── MyPackage │ ├── __init__.py │ ├── module1.py │ └── module2.py └── notebook.ipynb In __init__.py, I have: import mod... More on stackoverflow.com
🌐 stackoverflow.com
People also ask

How do I install a package in Jupyter Notebook?
Use %pip install package in a cell, which installs into the notebook kernel's environment, then restart the kernel.
🌐
pythonguides.com
pythonguides.com › modulenotfounderror-after-pip-install
ModuleNotFoundError After pip install: How to Fix It
What's the difference between pip install and python -m pip install?
pip runs whichever pip is first on your PATH. python -m pip runs the pip that belongs to that exact python, so the package always goes where your script can see it.
🌐
pythonguides.com
pythonguides.com › modulenotfounderror-after-pip-install
ModuleNotFoundError After pip install: How to Fix It
Why do I get ModuleNotFoundError after pip install?
Because pip installed the package for a different Python than the one running your code. Run python -m pip install package with the same interpreter you use to run the script.
🌐
pythonguides.com
pythonguides.com › modulenotfounderror-after-pip-install
ModuleNotFoundError After pip install: How to Fix It
🌐
Saturn Cloud
saturncloud.io › blog › jupyter-notebook-module-not-found-even-after-pip-install
Jupyter Notebook: Module Not Found Even After Pip Install | Saturn Cloud Blog
May 1, 2026 - Another common cause of the “Module not found” error is installing modules with the wrong version of Python. For example, if you’re running Jupyter Notebook with Python 3.7 and you install a module using pip install, but the module is only compatible with Python 3.8 or later, you’ll get the “Module not found” error.
🌐
GitHub
gist.github.com › protrolium › 200ce56b48660f22b0b1b29c6ab8eafd
Troubleshooting why Jupyter notebook wasn't finding installed python packages · GitHub
You could check the installed libraries ... /usr/bin/python · Then instead of just calling pip install <package>, you can use the module flag -m with python so that it uses the anaconda python for the installation...
🌐
Jupyter Community Forum
discourse.jupyter.org › notebook
Python in terminal finds module, jupyter notebook does not - Notebook - Jupyter Community Forum
September 29, 2019 - Hi, I am in a situation where python, in a terminal, finds a module with “import”. In fact, with “print(help(‘modules’)” I see a list of all available modules, and the module in question is listed. However, when running a jupyter notebook, of the proper version of python, I always get “module not found”. One think that I would like to do is to find out exactly where the module in question is being stored and then append that path to the path where the notebook is looking.
🌐
Jupyter Community Forum
discourse.jupyter.org › general
Module Not Found - General - Jupyter Community Forum
February 6, 2024 - I literally install it the line before importing pandas. What could be the reason?
Find elsewhere
🌐
GitHub
github.com › jupyter › help › issues › 444
Installed modules cannot be imported (ModuleNotFound error) · Issue #444 · jupyter/help
October 9, 2018 - Looking at the path, I realized it is different from the path for jupyter. Thus, I installed it in the same directory using pip install pandas --force-reinstall --target /Users/lc_admin.grueng/.virtualenvs/dwdata/bin.
Author: jupyter
🌐
Python Guides
pythonguides.com › modulenotfounderror-after-pip-install
ModuleNotFoundError After pip install: How to Fix It
3 weeks ago - Use %pip install package in a cell, which installs into the notebook kernel’s environment, then restart the kernel. The official Installing Python Modules guide recommends the -m switch so you run the right copy of pip when several Pythons ...
🌐
Saturn Cloud
saturncloud.io › blog › how-to-fix-modulenotfounderror-in-jupyter-notebook
How to Fix ModuleNotFoundError in Jupyter Notebook | Saturn Cloud Blog
May 1, 2026 - If you have installed the missing package or module, but still encounter the ModuleNotFoundError error, you should add the package or module to the Python path. To add a package or module to the Python path, open a Jupyter Notebook and type ...
🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterlab
Jupyter lab notebook `No Module Named` error upon importing installed packages - JupyterLab - Jupyter Community Forum
July 11, 2024 - Hey everyone, I’m getting a no module named error for installed packages. Earlier I was using nbdev package installed locally (not virtual environment). Although the nbdev commands were working in my terminal and jupyt…
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-fix-jupyter-command-not-found-error-after-installing-with-pip
"How to Fix 'jupyter: command not found' Error After Installing with pip " - GeeksforGeeks
July 23, 2025 - Ensuring proper configuration of Python in the system's path resolves this issue. Outdated pip Version: Compatibility issues during Jupyter installation can arise from using an outdated version of pip.
🌐
YouTube
youtube.com › shweta lodha
#41 Python for Beginners: Module Not Found Error in Jupyter Notebook - YouTube
In this video, I'll show you how you can troubleshoot 'Module Not Found' error in Python Jupyter Notebook.Watch out full playlist: https://www.youtube.com/wa...
Published: January 10, 2022
Views: 7K
🌐
Jupyter Community Forum
discourse.jupyter.org › notebook
Python in terminal finds module, jupyter notebook does not - #9 by fomightez - Notebook - Jupyter Community Forum
September 29, 2019 - @Khosravigashtasb’s advice is outdated in regards to installations. Inside a Jupyter notebook, use the following in a cell.: %pip install This installation is now a special Jupyter magic command meant to handle installing to exactly running the current notebook.
🌐
Python Data Science Handbook
jakevdp.github.io › blog › 2017 › 12 › 05 › installing-python-packages-from-jupyter
Installing Python Packages from a Jupyter Notebook | Pythonic Perambulations
If the module is not found there, it goes down the list of locations until the module is found. You can find out which location has been used using the __path__ attribute of an imported module: ... In most cases, a Python package you install with pip or with conda will be put in a directory ...
🌐
YouTube
youtube.com › skillbuilderzone
ModuleNotFoundError : No module named 'pandas' | How to install python modules from Jupyter Notebook - YouTube
ModuleNotFoundError : No module named 'pandas' | Install python modules from Jupyter NotebookWe will install the module from Jupyter NotebookDemo : https://y...
Published: November 19, 2021
Views: 80K
🌐
GitHub
github.com › jupyter › notebook › issues › 2359
Installed package won't import in notebook · Issue #2359 · jupyter/notebook
April 2, 2017 - Interestingly, when I try to import notebook from inside of a notebook, I get the same error: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-09fdb2483669> in <module>() ----> 1 import notebook 2 3 notebook.__version__ ImportError: No module named 'notebook'
Author: jupyter
🌐
YouTube
youtube.com › watch
Fix Anaconda + Jupyter Notebook "module not found" errors (make Jupyter work with multiple Pythons!) - YouTube
Did you install Anaconda but Jupyter Notebook can’t find Anaconda? Or you run Jupyter but nothing seems to be installed? It’s a kernel problem! Let’s walk th...
Published: September 13, 2020