GuidesMembership

"'python' is not recognized as an internal or external command": How to Fix It on Windows

By · updated · Ler em português

Short answer: the message means the terminal did not find Python. Either it is not installed, or it was installed in a way the terminal cannot call. The fix is to install (or reinstall) Python with the official installer, try the py command in place of python, check the PATH and close and reopen the terminal. To check, run py list and see whether the version appears. FFmpeg has the same problem and the same logic.

On a Windows set to Portuguese, the same message reads "'python' não é reconhecido como um comando interno ou externo". It means "'python' is not recognized as an internal or external command".

This error stops people who are about to run the Claude skills for video, which ask for Python and FFmpeg right at the start. Each step below was checked in the official Python documentation for Windows on Nov 28, 2026.

What the error means

When you type python in the terminal, Windows looks for a program with that name in the folders it knows. If it does not find one, it answers "is not recognized". It is not your mistake or Claude's: Python is not within reach of the terminal. This explanation is mine, in simple words. What the official Python documentation for Windows confirms is the list of causes and fixes, which is in the steps below.

Step 1: install Python with the official installer

The documentation (checked on Nov 28, 2026) recommends getting Python from the CPython team through the Python install manager, which you download at python.org/downloads or from the Microsoft app store. After installing, the commands python, py and pymanager should be available.

The full installer, the old one, appears in the same documentation as deprecated since Python 3.14. It has an option to add the Python folder to the PATH, which is the "Add to PATH" checkbox in the guide to animation on free Claude, step by step. In that guide I say that people who forget this checkbox get stuck on the very first step. If your installer shows this option, check it.

Step 2: test the py shortcut

The documentation says the recommended command on Windows is py, and that it can be used in place of python. If python fails and py works, you can already carry on with py: wherever the skill says python, type py.

Step 3: if it still fails, follow the official list

The troubleshooting section of the documentation lists what to try when python gives "command not found" or opens the Microsoft store:

  1. Confirm that you installed the Python install manager.
  2. Click Start, open "Manage app execution aliases" (on a Windows in Portuguese, "Gerenciar aliases de execução de aplicativo") and check that the "Python (default)" aliases are turned on. If they already are, turn them off and on again.
  3. See whether py and pymanager work.
  4. Check that your PATH contains the entry %UserProfile%\AppData\Local\Microsoft\WindowsApps. Windows already includes this entry by default.

To add a folder to the PATH by hand, the documentation says to click Start and search for "Edit environment variables for your account".

Step 4: close and reopen the terminal

After installing or changing the PATH, open a new terminal window. This rule is not on the Python page. It is, for example, on the official Claude Code page (checked on Nov 28, 2026), which tells you to open a new terminal after installing and then run claude --version.

How to check that it worked

Run py list. The documentation says this command shows the installed versions and which one is the current one. If a version appears, you are done. python --version is not on the page I opened, so use py list as the main test.

What about FFmpeg?

The FFmpeg error is "'ffmpeg' is not recognized" (in Portuguese, "'ffmpeg' não é reconhecido"), and the cause is the same: the program exists, but the terminal does not know where it is. The official FFmpeg download page (checked on Nov 28, 2026) says the project only provides source code and points, for Windows, to the ready-made builds from gyan.dev and BtbN. After downloading, the folder with ffmpeg.exe needs to be in the PATH, and the way to set it is the same as in the section above. This part about the PATH is not written on the FFmpeg page: it is the same Windows logic. Open a new terminal and run ffmpeg -version to check.

If you are setting up a PC to render, see also the PC for AI video that I measured. If your goal is to run Claude Code, see the free Claude Code guide.

What I still don't know

Frequently asked questions

Why is "python" not recognized on Windows? Because the terminal did not find Python. Either it is not installed, or the installation did not leave the python command within reach of the terminal. The official documentation tells you to check that the Python install manager is installed, the execution aliases and the PATH.

Do I need to check "Add to PATH" during installation? In the old full installer, the documentation confirms there is an option to add Python to the PATH. In my animation guide, I say that people who forget this checkbox get stuck on the first step. In the current Python install manager, the PATH is handled in a different way, described in the documentation.

What is the py command? It is the command the official documentation recommends on Windows to open Python, in place of python.

Why does the error continue after installing? The terminal you used is probably the old one. Close it and open another, and if it persists, check the aliases and the PATH (step 3).

Does FFmpeg give the same error? Yes. The message changes to "ffmpeg is not recognized" (in Portuguese, "ffmpeg não é reconhecido"), and the reason is the same: the folder of ffmpeg.exe is not in the PATH. Add the folder and open a new terminal.

Photo of Matheus Celtic

Matheus Celtic: creator of Criadores IA. I teach how to make animations and YouTube videos with AI, using Claude. Author of the book Animação com IA (in Portuguese). · YouTube · GitHub · X
By Matheus Celtic, creator of Criadores IA. Steps checked in the official Python documentation for Windows, on the FFmpeg download page and on the Claude Code page on Nov 28, 2026. My own experience is only what is in the guide to animation on free Claude. English version published Nov 28, 2026.