step1: win+i打开设置 step2: 输入“高级系统设置” step3: 打开最下方的“环境变量” step4: 进入后,选中“path”并点击“编辑”就可以设置环境变量path了。 参考链接