Over the last few months I have installed python several times and used it from both PowerShell and from within VSCode. I notice that sometimes pip install <package>
works and sometimes python pip -m install <package>
works, and that sometimes one works and the other doesn't.
Can someone explain why the behaviour is different, and what I have to do so I can always use pip install <package>
? Note I often use virtual environments as well.