pythonwindowsgit-bashxed

GitHub XED Building Instructions


I'm trying to follow the abbreviated GITHUB building instructions as shown here and here

git clone https://github.com/intelxed/xed.git xed
git clone https://github.com/intelxed/mbuild.git mbuild
cd xed
./mfile.py

The first three commands works fine. But when running the last one I get the following error:

$ ./mfile.py
/usr/bin/env: ‘python3’: No such file or directory

I've installed python version 3.11 to the following directory c:\python and have tried the following SO solution posted here.

[EDIT] I have discovered that when I navigate to the directory where mfile.py is located in Git Bash and run the command./mfile.py that its not python is that is executing (interpreting this file) its git-bash. Hope this helps :)


Solution

  • Check first your %PATH% (in a regular CMD shell window): it must include C:\python, and you should be able to type python3 -V to test.

    Then, in that same CMD, you can type bash and try again your command: the shebang should trigger python3.exe.

    If not, copy C:\Python\python.exe to C:\Python\python3.exe and the shebang will work.