In languages which import external libraries, such error might rise when the module being imported is not found in the system. Please add the relevant language tag
Questions tagged [modulenotfounderror]
727 questions
73
votes
22 answers
Why do I get a "ModuleNotFoundError" in VS Code despite the fact that I already installed the module?
I'm trying to debug some python code using VS Code. I'm getting the following error about a module that I am sure is already installed.
Exception has occurred: ModuleNotFoundError
No module named 'SimpleITK'
File…

An Ignorant Wanderer
- 1,322
- 1
- 10
- 23
22
votes
2 answers
ValueError: install DBtypes to use this function
I'm using BigQuery for the first time.
client.list_rows(table, max_results = 5).to_dataframe();
Whenever I use to_dataframe() it raises this error:
ValueError: Please install the 'db-dtypes' package to use this function.
I found this similar…

Rocklon1427
- 251
- 1
- 2
- 5
14
votes
4 answers
Why does tkinter (or turtle) seem to be missing or broken? Shouldn't it be part of the standard library?
I have seen many different things go wrong when trying to use the Tkinter standard library package, or its related functionality (turtle graphics using turtle and the built-in IDLE IDE), or with third-party libraries that have this as a dependency…

Karl Knechtel
- 62,466
- 11
- 102
- 153
11
votes
1 answer
ModuleNotFoundError: No module named 'tensorflow_hub'
I followed instructions given in the TensorFlow website to install tensorflow_hub and installed it within a conda environment.
$ pip install "tensorflow>=2.0.0"
$ pip install --upgrade tensorflow-hub
I ran the above in anaconda prompt
But I'm…

Abhiram kadali
- 111
- 1
- 1
- 3
8
votes
3 answers
Django/Python "django.core.exceptions.ImproperlyConfigured: Cannot import 'contact'. Check that '...apps.contact.apps.ContactConfig.name' is correct"
Hopefully you all can give me a hand with this...
my work flow:
|.vscode:
|capstone_project_website:
| -_pycache_:
| -apps:
| -_pycache_
| -accounts:
| -contact: # app that is throwing errors
| -_pycache_:
| …

RDeaver
- 81
- 1
- 3
8
votes
1 answer
ModuleNotFoundError: No module named 'click'
I am trying to run this script here: https://github.com/carderne/signal-export
However, when I run
./sigexport.py outputdir
I get this:
Traceback (most recent call last):
File…

Andrew Martin Kolstee
- 91
- 1
- 1
- 3
8
votes
5 answers
No module named 'scipy.spatial.transform._rotation_groups after compile python script with pyinstaller
After days of looking for an answer on internet and, of course, in overflow I make this post. I hope someone could help me.
I made a little program that fits some data that I got from chemistry experimentation with a math model using scipy.optimize.…

Franco Barrionuevo
- 161
- 1
- 7
7
votes
5 answers
No module named 'pip._internal.cli.main'
Pip does not work.
Error:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\pip-script.py", line 6, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal.cli.main'
None…

Treetagger is a nightmare
- 221
- 2
- 3
- 8
7
votes
2 answers
ModuleNotFoundError: No module named '...'
I've installed the module pyaudio using pip. However, when I try to import it, Python says the module is not found:
C:\Users\hp>pip install pyaudio
Requirement already satisfied: pyaudio in…

Panas Tiwari
- 83
- 1
- 1
- 7
6
votes
2 answers
ModuleNotFoundError: No module named 'notebook.base' when installing nbextensions
For the 1000th time, I am trying to install the nbextensions for my Jupyter Notebook and every time I get the error ModuleNotFoundError: No module named ‘notebook.base’.
I did everything according to the instructions; in Windows 11 cmd:
installed…

Nikita Shiliaev
- 61
- 2
6
votes
4 answers
How do I properly import python modules in a multi directory project?
I have a python project with a basic setup that looks like this:
imptest.py
utils/something.py
utils/other.py
Here's what's in the scripts:
imptest.py
#!./venv/bin/python
import utils.something as something
import utils.other as other
def…

ScipioAfricanus
- 1,331
- 6
- 18
- 39
6
votes
1 answer
Python3 virtualenv installation borked: No module named 'virtualenv.seed.via_app_data'
I am on a MAC OS 10.15.6
I am having a tough time with virtualenv for python3.
The error I keep getting
ModuleNotFoundError: No module named 'virtualenv.seed.via_app_data'
It pops up when I run the following command (among others)
python3 -m…

Will
- 61
- 1
- 2
5
votes
1 answer
ModuleNotFoundError when trying to use pip-autoremove
I tried to install pip-autoremove and it was successfully installed. But when I tried pip-autoremove jupyter -y it gives me the following error:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File…

user20551429
- 99
- 1
- 6
5
votes
5 answers
ModuleNotFoundError: No module named 'fastapi'
Here is my file structure and requirements.txt:
Getting ModuleNotFoundError, any help will be appreciated.
main.py
from fastapi import FastAPI
from .import models
from .database import engine
from .routers import…

Zurab Skhiladze
- 93
- 1
- 1
- 5
5
votes
4 answers
Package installed in conda but module not found. How is that possible?
It seems that many people struggle with this problem, but I can't find any answer that works.
I think that I am doing everything right but it still doesn't work.
I've built my own package and installed it in my conda environment.
When I do conda…

Reinier
- 459
- 2
- 4
- 13