Pip installation issue

Hello Everyone,

I am using the python version 3.12.6.

I tried installing pip by using the script https://bootstrap.pypa.io/get-pip.py and the installation was successful, later I added the path to the environment variables as well.

However, when I am trying to check the version or access pip, I am getting the respective error,

Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "C:\Users\Kavya Sri\AppData\Local\Programs\Python\Python312\Scripts\pip.exe_main
.py", line 4, in
ModuleNotFoundError: No module named ‘pip._internal’; ‘pip’ is not a package

I tried this command “py -m ensurepip --upgrade”, which says,
Looking in links: c:\Users\KAVYAS~1\AppData\Local\Temp\tmpd5al4sh5
Requirement already satisfied: pip in c:\users\kavya sri\appdata\local\programs\python\python312\lib\site-packages (24.2)

I tried this command as well “python -m pip --version”, which uninstalls the existing pip and reinstalled the pip again successfully.

Later, I tried this command “python -m pip --version”, which gives me the below error,
ERROR: Could not find a version that satisfies the requirement install (from versions: none)
ERROR: No matching distribution found for install

Kindly someone help me in resolving this issue

Thanks,
Kavya Sri Punna

Hello,

Try this one:

py -m pip install --upgrade pip

Hi Paul,

I tried that, but it gives me an error,
C:\Users\Kavya Sri>py -m pip install --upgrade pip
ERROR: Could not find a version that satisfies the requirement install (from versions: none)
ERROR: No matching distribution found for install

Try uninstalling Python, then re-install it.
You can go to your Downloads folder and scroll down to your Python installer. Click on it and click uninstall. After you have successfully uninstalled Python, click the installer again, and re-install Python.

Then go back to your command prompt and type:

py -m pip install --upgrade pip

By the way, I literally did it myself a few minutes ago and it is working just fine.

Hello Paul,

I identified the issue by re-installing the python twice.

Previously I used to only install for a single user that too by using the default setup, where some of the features are not installing. So, I installed by manually selecting all the features and for all the users.

As already pip was installed, as soon as the python installation has completed successfully, pip went also worked.

Thank you, Paul!!