I had Python 3.6 on my Windows machine under "C:\Program Files" I wanted to upgrade it to 3.11. Installer completed successfully, but new version was installed not in program files, but in "C:\Users\myname\AppData\Local\Programs\Python\Python311".
I moved Python311 directory to the "C:\Program Files" and python itself does work, but pip is not working anymore. when I am trying to do
pip --version
I am getting
Fatal error in launcher: Unable to create process using '"C:\Users\myname\AppData\Local\Programs\Python\Python311\python.exe" "C:\Program Files\Python311\Scripts\pip.exe" --version': The system cannot find the file specified.
Can someone please tell me what I need to do to fix it?