This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.9 repair on Windows do not recover pip module
Type: behavior Stage:
Components: Windows Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Prometheus3375, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-02-19 06:36 by Prometheus3375, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
Temp.zip Prometheus3375, 2021-02-23 08:35 Logs created right before this post
Messages (4)
msg387285 - (view) Author: Svyatoslav (Prometheus3375) * Date: 2021-02-19 06:36
I by mistake run command `pip install -U pip setuptools wheel` on Windows which deleted pip and did not install a new version. I decided to repair Python using 3.9.1 installer option. But after repair pip still was not installed.
msg387538 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-22 19:27
Assuming you installed pip using the installer, repair should bring it back.

Do you still have installer logs? They would be in %TEMP% and start with "python". We'll need at least the main log and the pip log, but if you want to just zip them all up and attach them here that would be great.
msg387554 - (view) Author: Svyatoslav (Prometheus3375) * Date: 2021-02-23 08:35
Attached logs created right before I created this post.
msg387559 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-23 11:08
Thanks! Interestingly, it seems like it ought to have re-run, but 
decided not to. I wonder if there's been some change to how Windows 
Installer deals with using registry keys to control custom actions?

Unfortunately, MSI is an incredibly complicated installer, which is why 
I like the Store package so much better (and one day, hopefully we can 
distribute the packages directly, but right now they require admin so I 
don't want to).

I'll have to dig into the options for the pip.wxs file in our installer 
to see whether we can just force it to re-run on repair.

To force restore it yourself, open an admin prompt and run "python.exe 
-m ensurepip". That's all the installer is going to do.
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87427
2021-02-23 11:08:47steve.dowersetmessages: + msg387559
2021-02-23 08:35:39Prometheus3375setfiles: + Temp.zip

messages: + msg387554
2021-02-22 19:27:46steve.dowersetmessages: + msg387538
2021-02-19 06:36:00Prometheus3375create