首页 > 解决方案 > Win 10 路径变量被搞砸了

问题描述

我试图通过使用此命令将硒添加到我的 PATH 中 setx path "%path%;c:\directoryPath",现在使用诸如pythonand之类的命令pip install ...返回此

python : The term 'python' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

当它在命令之前没有这样做时。

我该如何修复/恢复这个?如何将 selenium.exe 添加到我的 win 10 路径?

编辑:结果echo $PATH

PS C:\prog\react> echo $PATH
PS C:\prog\react>

和我的环境变量的截图 环境变量

标签: python-3.xwindowspath

解决方案


推荐阅读