How can I solve the following issue when I run the command to build the Linux environment on GitBash: Python was not found, disable this shortcut

36 views Asked by At

The following error message is displayed when I run the build environment on GitBash for Linux Poky file:

Python was not found; run without arguments to install from the Microsoft store, or disable this shortcut from Settings>Manage  App Execution Aliases.
BitBake requires Python 3.8.0 or later as Python3.

In the execution alias, I disabled App installed Python.exe and enabled Python3.exe. In the environment variables, I changed the path for system settings to Python and Python scripts. GitBash shell recognise python version 3.12 when I ask for the version of python installed.

However the same error message is shown when I try running the build environment command in the Gitbash power shell

1

There are 1 answers

3
Ross Burton On

What happens when you run python3 --version?

Poky should work in WSL2, but not WSL1 and not a Windows terminal. If there are .exe files involved then you're not in WSL2.