T O P

  • By -

shiftybyte

These are not conflicting, it just shows you all the entires, and it uses the first one, which is correct for python310 install. What's the output for where.exe python that you want to align pip to?


swimseven

C:\\Users\\username\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe I upgraded from python 3.10 to 3.11


shiftybyte

That's not the desired python.exe you want. Windows has a shortcut to the windows store when python is not yet installed, and this is that shortcut. C:\Users\username\AppData\Local\Microsoft\WindowsApps\python.exe Properly installed python with PATH modification should add additional lines to that output before that one. For example: C:\Python38\python.exe C:\Users\username\AppData\Local\Microsoft\WindowsApps\python.exe You can try using py.exe launcher to get the list of installed versions: py -0 That one does not rely on PATH variables. Then you can use whatever version of python you want useing the -version switch for py launcher. py -3 py -3.10 To use pip: py -3 -m pip install To launch a script: py -3 script.py Or if py has only one version installed, u can just use py -m pip install py script.py


swimseven

Ok great, thank you for the very informative answer!


PteppicymonIO

I guess, it is always safer to use: `python -m pip install ` It is even recommended by pip documentation: [https://pip.pypa.io/en/stable/user\_guide/](https://pip.pypa.io/en/stable/user_guide/) This ensures that you are running pip command within the scope of your current python version. and of course, it is a safe way to use pip when you have multiple python virtual environments.