windowsinstallationcmdpackagechocolatey

Package installation failure when trying to upgrade Python by using Chocolatey


I tried to upgrade python through Chocolatey because I had a problem with VScode, VScode doesn't recognize python but I have it installed on my pc. The problem is that when Chocolatey asked me about if I want to run all the script to install the files, I accidently put N and enter and one of the packages didn't installed, is there something I should do? Because I think this could be a problem in the future but I don't really know, the message is the following:

Chocolatey upgraded 12/13 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Upgraded:

Packages requiring reboot:

The recent package changes indicate a reboot is necessary. Please reboot at your earliest convenience.

Failures

C:\Windows\System32>choco upgrade python Chocolatey v2.2.2 Upgrading the following packages: python By upgrading, you accept licenses for the packages. python v3.11.5 is the latest version available based on your source(s).

Chocolatey upgraded 0/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

I tried:

I hope someone can help me with this.


Solution

  • If you are running a modern operating system (ie. an up-to-date Windows 10) that failed package isn't an issue.

    However, to make everything normalized on your system run choco install KB2919355.

    Note that the failing package would have made no difference to installing / running Python.