# markitdown is not recognized / command not found

> Installed MarkItDown but the shell says command not found or not recognized? Three checks find the cause: PATH, wrong environment or too old a Python.

Source: https://markitdown.dev/errors/command-not-found/ · Updated 2026-11-15·Upstream source ↗

Windows says `'markitdown' is not recognized`; bash, zsh and fish say `command not found`. MarkItDown can be installed correctly and still not be runnable, and there are four causes that three commands tell apart. We reproduced each one on Windows, macOS and Linux machines, with exact messages.

> **Short answer**
>
> Run MarkItDown through Python instead of by name.
> 
> **Windows**
> 
> ```bash
> python -m markitdown --version
> ```
> 
> **macOS and Linux**
> 
> ```bash
> python3 -m markitdown --version
> ```
> 
> If it prints `markitdown 0.1.9`, MarkItDown **is** installed and only your PATH is wrong: go to [cause 1](#cause-1). If it says `No module named markitdown`, go to [causes 2](#cause-2) and [3](#cause-3).

Tested with markitdown 0.1.9 · Python Windows Server 2025, Ubuntu 24.04, macOS 26 · PowerShell 7.6, Windows PowerShell 5.1, Command Prompt, bash, zsh, fish · Python 3.13 (GitHub runners), Python 3.8 (Linux lab) · 2026-11-15 · evidence: [windows-latest.log](https://markitdown.dev/evidence/T31/windows-latest.log), [ubuntu-latest.log](https://markitdown.dev/evidence/T31/ubuntu-latest.log), [macos-latest.log](https://markitdown.dev/evidence/T31/macos-latest.log), [python38-lab.log](https://markitdown.dev/evidence/T31/python38-lab.log)

> **Reinstalling with the same Python fixes none of these:** All four causes are about which Python you used or where its programs are, not about a broken download. Run the checks below before you reinstall anything.

## Find your cause in one minute

*Diagram: Three checks, four causes. Check 1: does python -m markitdown --version print a version? If yes the cause is PATH. If no, check 2: what does pip show say? Version 0.0.1a1 means your Python is older than 3.10. Otherwise check 3: are python and pip the same installation and is the environment active? If not, the cause is a different Python or an inactive environment; activation can also fail silently on PowerShell.*

| Run | You see | It means |
| --- | --- | --- |
| `python -m markitdown --version` | a version | Cause 1: only PATH is wrong |
| `python -m pip show markitdown` | `Version: 0.0.1a1` | Cause 2: your Python is older than 3.10 |
| `python -m pip --version` and `pip --version` | two different paths, or the environment is not active | Cause 3: another Python or no environment |

**Windows**

```bash
python -m pip show -f markitdown
```

**macOS and Linux**

```bash
python3 -m pip show -f markitdown
```

## Cause 1: the scripts folder is not on your PATH

pip puts the `markitdown` launcher in a scripts folder, separate from the package. If that folder is not on PATH your shell cannot find the launcher, while `python -m markitdown` still works. pip tells you at the end of the install, in a warning that scrolls past:

```console
$ python -m pip install --user markitdown
  WARNING: The script markitdown.exe is installed in 'C:\Users\runneradmin\AppData\Roaming\Python\Python313\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
```

*markitdown 0.1.9 installed · Windows Server 2025 runner · Python 3.13 · 2026-11-15*

```console
$ python3 -m pip install --user markitdown
  WARNING: The script markitdown is installed in '/home/runner/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
```

*markitdown 0.1.9 installed · Ubuntu 24.04 runner · Python 3.13 · 2026-11-15*

```console
$ python3 -m pip install --user markitdown
  WARNING: The script markitdown is installed in '/Users/runner/Library/Python/3.13/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
```

*markitdown 0.1.9 installed · macOS 26 runner · Python 3.13 · 2026-11-15*

The folder differs per system, Python and user, so do not copy anyone's path: read it from that warning, or ask Python.

**Windows**

```bash
python -c "import sysconfig;print(sysconfig.get_path('scripts','nt_user'))"
```

**macOS and Linux**

```bash
python3 -m site --user-base
```

### Windows

The scripts folder for a per-user install is under `%APPDATA%\Python`. With the folder missing from PATH these are the messages, in all three shells:

```console
PS> markitdown --version
$ markitdown --version
markitdown: D:\a\work\work\results\windows\_c_not_recognized_pwsh7.ps1:1
Line |
   1 |  markitdown --version
     |  ~~~~~~~~~~
     | The term 'markitdown' is not recognized as a name of a cmdlet, function, script file, or executable program.
     | Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```

*markitdown not found · PowerShell 7.6 · Windows runner · 2026-11-15*

```console
PS> markitdown --version
$ markitdown --version
markitdown : The term 'markitdown' is not recognized as the name of a cmdlet, function, script file, or operable 
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\a\work\work\results\windows\_c_not_recognized_ps5.ps1:1 char:1
+ markitdown --version
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (markitdown:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
```

*markitdown not found · Windows PowerShell 5.1 · Windows runner · 2026-11-15*

```console
$ markitdown --version
$ markitdown --version
'markitdown' is not recognized as an internal or external command,
operable program or batch file.
```

*markitdown not found · Command Prompt · Windows runner · 2026-11-15*

For this window only, add the folder and try again. This worked in our runs (the command was found, with the same version):

**PowerShell (this window)**

```bash
$env:PATH = "<scripts folder>;$env:PATH"
markitdown --version
```

**bash and zsh (this window)**

```bash
export PATH="$(python3 -m site --user-base)/bin:$PATH"
markitdown --version
```

To make it permanent add the folder in Settings, System, About, Advanced system settings, Environment Variables, user variable `Path`, and then open a **new** terminal: a window that was already open keeps the old PATH. We could not capture or test that dialog on our machines, so we do not show screenshots of it.

### macOS

For the python.org and Apple Pythons the per-user folder is `Library/Python/<version>/bin` in your home folder, not `.local/bin`: the same fix command as above, which uses Python's own answer, handled it. Homebrew's Python refuses plain `pip install` with `externally-managed-environment` ([the macOS page](https://markitdown.dev/install/mac/)). The zsh message:

```console
$ markitdown --version
$ markitdown --version
zsh:1: command not found: markitdown
```

*markitdown not found · zsh 5.9 · Ubuntu 24.04 runner · 2026-11-15*

### Linux and WSL

The folder is `~/.local/bin`, which many distributions only add to PATH at your next login. On Debian and Ubuntu pip may refuse to install at all; that is [a different error](https://markitdown.dev/install/linux/). The messages in bash and fish:

```console
$ markitdown --version
$ markitdown --version; echo; type markitdown
bash: line 1: markitdown: command not found

bash: line 1: type: markitdown: not found
```

*markitdown not found · bash · Ubuntu 24.04 runner · 2026-11-15*

```console
$ markitdown --version
$ markitdown --version
fish: Unknown command: markitdown
fish: 
markitdown --version
^~~~~~~~~^
```

*markitdown not found · fish · Ubuntu 24.04 runner · 2026-11-15*

### The fix that needs no PATH editing

Keep using `python -m markitdown`. It starts the same program: converting a CSV file both ways gave the same table.

```console
$ python3 -m markitdown csv-semicolon.csv
| id;name;city |
| --- |
| 1;Zoë;Zürich |
| 2;Łukasz;Kraków |
```

*markitdown 0.1.9 · Ubuntu 24.04 runner · same table with the plain command · 2026-11-15*

> **Use python, not py, for -m on Windows:** On our Windows machine python and the py launcher were different Pythons (3.13 and 3.15), so py -m markitdown --version said No module named markitdown even though python -m markitdown --version worked. That is cause 3 in one line.

```console
PS> python -m markitdown --version; py -m markitdown --version
$ python -m markitdown --version; py -m markitdown --version
markitdown 0.1.9
C:\hostedtoolcache\windows\Python\3.15.2\x64\python.exe: No module named markitdown
```

*markitdown 0.1.9 / not installed · PowerShell 7.6 · Windows runner · python is 3.13, py is 3.15 · 2026-11-15*

## Cause 2: your Python is older than 3.10, and pip installed an empty package

On Python 3.8 and 3.9 `pip install "markitdown[all]"` reports success, prints `WARNING: markitdown 0.0.1a1 does not provide the extra 'all'`, installs a 2.6 kB package from 2024 and creates no command. We reproduced it on 3.8.20 and 3.9, and on Apple's own Python 3.9.6.

```console
$ pip install "markitdown[all]"  (Python 3.8)
$ python --version
Python 3.8.20
$ pip install "markitdown[all]"
Collecting markitdown[all]
  Downloading markitdown-0.0.1a1-py3-none-any.whl (2.6 kB)
WARNING: markitdown 0.0.1a1 does not provide the extra 'all'
Installing collected packages: markitdown
Successfully installed markitdown-0.0.1a1
exit=0
$ pip list | grep -i markitdown
markitdown 0.0.1a1
$ markitdown --version
```

*markitdown 0.0.1a1 installed · Linux lab · Python 3.8.20 · 2026-11-15*

```console
$ pip install "markitdown[all]"
$ pip install --no-cache-dir "markitdown[all]"
Collecting markitdown[all]
  Downloading markitdown-0.0.1a1-py3-none-any.whl (2.6 kB)
WARNING: markitdown 0.0.1a1 does not provide the extra 'all'
Installing collected packages: markitdown
Successfully installed markitdown-0.0.1a1
exit=0
$ pip list | grep -i markitdown
markitdown 0.0.1a1
$ markitdown --version
/bin/bash: line 1: /tmp/claude-0/edge3.9/bin/markitdown: No such file or directory
```

*markitdown 0.0.1a1 installed · Linux container · Python 3.9.25 · 2026-11-15*

This is observed behaviour of pip with this package, not a bug in either: every real release needs Python 3.10 or newer, so pip falls back to the only release that does not say so. Check with `pip show` (above): the version line says `0.0.1a1`. The fix is a newer Python: 3.10 to 3.13 are safe, and [the install page](https://markitdown.dev/install/) explains the upper limit, because Python 3.15 produces a similar silent fallback.

## Cause 3: installed into a different Python, or an environment that is not active

Symptoms: `pip show` finds MarkItDown but `python -m markitdown` does not, or the reverse. Typical cases, each with its check:

-   `pip` and `python` are different installations: compare `python -m pip --version` with `pip --version`. In our run they pointed at a virtual environment and the main Python.
-   The environment exists but is not active in this window. The launcher is in the environment, so nothing is found by name:

```console
PS> markitdown --version  (venv created, not activated)
markitdown: D:\a\work\work\results\windows\_c_venv_not_active_pwsh.ps1:1
Line |
   1 |  … nstall -q markitdown 2>&1 | Select-Object -Last 1; markitdown --versi …
     |                                                       ~~~~~~~~~~
     | The term 'markitdown' is not recognized as a name of a cmdlet, function, script file, or executable program.
     | Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```

*markitdown not found · PowerShell 7.6 · Windows runner · 2026-11-15*

**Windows**

```bash
.venv\Scripts\markitdown.exe --version
```

**macOS and Linux**

```bash
.venv/bin/markitdown --version
```

```console
PS> .\v\Scripts\markitdown.exe --version
$ .\v\Scripts\markitdown.exe --version; "--- active:"; .\v\Scripts\Activate.ps1; markitdown --version; (Get-Command markitdown).Source
markitdown 0.1.9
--- active:
markitdown 0.1.9
D:\a\work\work\v\Scripts\markitdown.exe
```

*markitdown 0.1.9 · PowerShell 7.6 · Windows runner · 2026-11-15*

-   Installed in conda `base` but running outside it; installed with `sudo`; an editor terminal using another interpreter. We did not test these three.

> **Always install with python -m pip:** python -m pip install ... installs into exactly the Python that python runs, which removes the mismatch for good.

## Cause 4: activation failed and you did not notice

On PowerShell the bash line from tutorials fails with a `CommandNotFoundException`, and a locked-down machine refuses the activation script. The correct activation line per shell:

**PowerShell**

```bash
.venv\Scripts\Activate.ps1
```

**Command Prompt**

```bash
.venv\Scripts\activate.bat
```

**bash and zsh**

```bash
source .venv/bin/activate
```

If PowerShell says that running scripts is disabled, allow it for the current window only (the exact message and one-line fix are on [the Windows page](https://markitdown.dev/install/windows/)). Never change the machine-wide policy.

## `uvx: command not found` and `markitdown-mcp` is not recognized

`uvx` missing means uv is not installed or its folder is not on PATH: same diagnosis as cause 1, different folder (`uv tool update-shell` adds it). `markitdown-mcp` missing means the separate MCP package is not installed. If the message comes from an AI app's log rather than your terminal, the app does not inherit your shell's PATH ([MCP troubleshooting](https://markitdown.dev/mcp/troubleshooting/)).

## Skip the problem: installers that manage PATH

`uv tool install`, `pipx` and `uvx` put the command on PATH (or run it without installing). All three passed on Windows, macOS and Linux; the commands that name Python 3.13 are in [the command builder](https://markitdown.dev/install/).

## The exact messages

| Shell | Message |
| --- | --- |
| Command Prompt | `'markitdown' is not recognized as an internal or external command, operable program or batch file.` |
| Windows PowerShell 5.1 | `markitdown : The term 'markitdown' is not recognized as the name of a cmdlet, function, script file, or operable program.` |
| PowerShell 7 | `The term 'markitdown' is not recognized as a name of a cmdlet, function, script file, or executable program.` |
| bash | `bash: markitdown: command not found` |
| zsh | `zsh:1: command not found: markitdown` |
| fish | `fish: Unknown command: markitdown` |

We captured these on the runners; Windows in another display language prints the same message in that language, which we did not test.

## Check that it is fixed

In a **new** terminal run `markitdown --version`; it prints `markitdown 0.1.9`. Then convert a file: [report.docx](https://markitdown.dev/samples/report.docx) needs the docx extra (`pip install "markitdown[docx]"`, or install everything), and the plain command and `python -m markitdown` give the same result. More errors: [the error index](https://markitdown.dev/errors/); first steps: [the quickstart](https://markitdown.dev/quickstart/).

## Related

- [Install MarkItDown](https://markitdown.dev/install/): Every install route and the command builder.
- [Install on Windows 11](https://markitdown.dev/install/windows/): The Windows walkthrough that prevents this.
- [Install on macOS](https://markitdown.dev/install/mac/): The macOS walkthrough and its three Python traps.
- [cannot import name 'MarkItDown' / No module named 'markitdown'](https://markitdown.dev/errors/import-error/): When it fails inside Python instead.
- [Error reference](https://markitdown.dev/errors/): Every other MarkItDown error.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
