Error while running python and installing packages

how to resolve the issue below. It is preventing me from installing python packages and doing other python things.

C:\Users\lenovo\codex\python_bootcamp\day_16>pip install prettytable
Fatal error in launcher: Unable to create process using ‘“C:\Users\lenovo\AppData\Local\Programs\Python\Python312\python.exe” “C:\Users\lenovo\AppData\Local\Programs\Python\Python312\Scripts\pip.exe” install prettytable’: The system cannot find the file specified.

Hello,

try something like this:

py -m pip install library_name_here

I’ve done it but there’s still error

Wonder if it is the same issue as this user:

Refer to this thread and uninstall and reinstall as this user has via the instructions given. Can you give this a try?

Ok. I’ll try unistalling the python and install it again