# 0x8007007E: The specified module could not be found

**Code:** `0x8007007E` · **Category:** Windows · **Seen on:** Windows

A DLL that a program, driver or COM component needs isn’t on disk or on the DLL search path.

## Meaning

ERROR_MOD_NOT_FOUND appears when loading native modules (Python/Node extensions, ODBC drivers, Outlook add-ins), during updates, or with Excel/Office COM add-ins. The missing DLL is often a dependency of the DLL you named.

## Common causes

- Dependency DLL missing (VC++ runtime, native library)
- 32/64-bit mismatch
- PATH doesn’t contain the DLL’s folder
- Corrupt installation

## Quick fix

1. Find missing dependencies with Dependencies (lucasg) or dumpbin /dependents
2. Install the right runtime/architecture
3. Add the folder to PATH or use os.add_dll_directory (Python)

## Detailed fix by platform

### Python

1. 

```python
import os
os.add_dll_directory(r"C:\\Program Files\\MyLib\\bin")
import mylib
```


## How to diagnose

1. **Dependencies** — Which DLL is missing?
2. **Bitness** — 32 vs 64-bit
3. **PATH** — Includes the folder?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/windows/0x8007007e-module-could-not-be-found)
