Edge Impulse CLI Installation Error (Even after the use of the scripts, uninstalling and doing a complete reboot)

Question/Issue: Hi I keep running into this issue when trying to install edge impulse CLI. I tried uninstalling python and node.js and even tried the scripts. Even did a complete restart on my machine. Nothing seems to work, I need some help please.

Project ID:

Context/Use case:

[^_^] installed!
Downloading the Build Tools for Windows bootstrapper, this may take a few minutes…
Checking your Build Tools for Windows configuration. This may take several minutes…
Installing the Edge Impulse CLI…
npm install -g edge-impulse-cli
npm WARN deprecated @zeit/dockerignore@0.0.5: “@zeit/dockerignore” is no longer maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See for details.
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path C:\Users\kin.poon’~.npm-global’\node_modules\edge-impulse-cli\node_modules@serialport\bindings
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@18.12.1 | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if “python3” can be used
npm ERR! gyp ERR! find Python - “python3” is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if “python” can be used
npm ERR! gyp ERR! find Python - “python” is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python39\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python39\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python39-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python38\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python38\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python38-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python37\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python37\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python37\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python37-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python37-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python37-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python37-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python36\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python36\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python36\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\kin.poon\AppData\Local\Programs\Python\Python36-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Users\kin.poon\AppData\Local\Programs\Python\Python36-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files\Python36-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python36-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
npm ERR! gyp ERR! find Python - “py.exe” is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python=“C:\Path\To\python.exe”
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python “C:\Path\To\python.exe”
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:330:47)
npm ERR! gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:159:21)
npm ERR! gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:228:18)
npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:420:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd C:\Users\kin.poon’~.npm-global’\node_modules\edge-impulse-cli\node_modules@serialport\bindings
npm ERR! gyp ERR! node -v v18.12.1
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kin.poon\AppData\Local\npm-cache_logs\2022-11-10T13_36_50_513Z-debug-0.log
[>_<] Edge Impulse CLI is not installed.

Hmm, looks like Python is not installed, I guess you’ve followed the instructions at Installation - Edge Impulse Documentation?

Python is installed but for some reason it can’t seem to find it.

Try to run this command and reinstall again

sudo chown -R $USER /usr/local

Do you get an error message if you in a command prompt write python3 and press Enter?
If so, try first rebooting the computer to see if it helps
EDIT: Assuming you have a Windows-computer from the log you included