Trying to use shutil.which()
to determine if git is installed. From the docs, I see which()
on Windows should use PATHEXT to know which file extensions
Remove the trailing ;
from your PATHEXT
environment variable. It seems shutil.which()
gets confused by this and interprets an empty string as a valid file extension, and therefore doesn't try to append any of the file extensions.
More details here: "jupyter-kernelspec" not found while installing iqsharp however it exists on PATH