Why isn't git bash transforming the path to *nix notation for my python installation?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 19:39:38

Open a new CMD, and set the minimal PATH you need:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
set GIT_HOME=C:\Path\to\Git
set PATH=%GIT_HOME%;%GIT_HOME%\bin;%GIT_HOME%\usr\bin;%PATH%
SET PATH=C:\Users\Aerovistae\AppData\Local\Programs\Python\Python36-32;%PATH%

(Make sure python.exe is indeed in C:\Users\Aerovistae\AppData\Local\Programs\Python\Python36-32)

Then, type bash, and see if python.exe works.

You can also add your previous paths, to identify the one causing trouble.
In the OP's case, the stray leading space for the Python path was the troublemaker.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!