Getting error on step 4 of Python Developer's Guide Quick Reference step #4

I am following the Python Developer’s Guide Quick Reference.

I have properly cloned the repository. When I do step 3
./configure --with-pydebug && make -j
I see these messages at the last of the output:

make: *** [Python/frozen_modules/importlib._bootstrap.h] Killed: 9
make: *** Waiting for unfinished jobs....
make: *** [Python/frozen_modules/zipimport.h] Killed: 9
make: *** [Python/frozen_modules/getpath.h] Killed: 9
make: *** [Python/frozen_modules/importlib._bootstrap_external.h] Killed: 9

when I do step 4
./python.exe -m test -j3
I get
zsh: no such file or directory: ./python.exe

I am on MacOS Sonoma 14.6.1

I’d appreciate any help in pointing me toward where/how I should troubleshoot this.

This works as expected when I try the steps on Linux Mint. I’d still like to understand the MacOS problem and get it fixed there.

I don’t know MacOS, but I expect it should be python3. That’s what you should use on Linux because historically python was Python 2.

The developer guide describes that python for the local, compiled CPython interpreter was deliberately named python.exe (not like .exe for windows) because of case sensitivity in the MacOS file system and to avoid users accidentally calling Python (Python3).