Why is there a PATH difference depending on how you open PowerShell?

谁说我不能喝 提交于 2019-12-24 14:07:43

问题


My path looks like this: The top (selected) path contains pandoc.exe and the third from the top (anaconda3) contains pandoc.exe. So the top folder should take priority.

If I launch PowerShell simply by launching "Windows PowerShell.exe", and type gcm pandoc I get the top PATH for pandoc.exe:

If I launch PowerShell by shift-right-clicking in explorer and selecting "Open PowerShell window here", and type gcm pandoc.exe, I get the Anaconda PATH for pandoc.exe:

What gives? Why does it matter in what way I launch PowerShell?

来源:https://stackoverflow.com/questions/51409878/why-is-there-a-path-difference-depending-on-how-you-open-powershell

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