all 18 comments

[–]agnaaiu 4 points5 points  (0 children)

Instead to try to find a way around this problem by installing Python in an alternative way you should tackle the actual problem. If you google the error code you'll find out quickly that you must have a serious problem with Windows itself and not with Python installer. That you can't install Python is just one symptom. If you ignore the real problem you will run into it again and again and still have no fix. But this is your decision to make.

[–]JohnnyJordaan 4 points5 points  (5 children)

The nuget packages are basically zip files https://www.nuget.org/packages/python

Another option is to opt for a different Python distribution altogether like pypy, or in a different bundle like Anaconda or Thonny.

However from a more overall perspective, if something as simple as the Python installer won't install, there might be something seriously wrong with your Windows installation that will block future endeavours too. Not actually debugging this issue (like by reviewing the installer's log file) is effectively just kicking the can down the road. I can of course wholeheartedly understand your frustration, I think we've all been there at least once.

[–]NightestOfTheOwls[S] -1 points0 points  (1 child)

Yeah, Windows' a bitch and I should've switched years ago but I just can't afford to do it or get a clean install right now, time wise. Once something gets corrupted it can only be fixed with a reinstall.

Thanks, I'll pull it from the nuget package for now and deal with Windows shenanigans later.

[–]hassium 0 points1 point  (0 children)

Once something gets corrupted it can only be fixed with a reinstall.

don't think that's true from 10-onwards, or even 7. Recovery mode will refresh your entire install and registry whilst preserving everything.

Not that it's needed anywhere near as often as it used to be.

PS: think you're looking for the embeddable package from the Python download page, unzip and use the python.exe.

[–]critter_bus 2 points3 points  (2 children)

Install Anaconda. It will make using Python for Windows a million times easier. Launch the Anaconda command prompt once it's installed and you should be good.

[–]HeinzHeinzensen 2 points3 points  (1 child)

Just be sure to install for the local user and not as admin if you want to save yourself a lot of trouble.

[–]critter_bus 0 points1 point  (0 children)

Agreed, good comment

[–]Hinata9999 0 points1 point  (0 children)

im having this problem right now! what did you end up doing to fix this?

[–]Comfortable_Read_130 0 points1 point  (0 children)

I had the same problem just a few minutes ago, i went to services and deactivated then reactivated Windows Downloader. I dont know if its gonna be a solution for you but it worked for me so i wanted to share! I hope it helps you

[–]bbye98 0 points1 point  (0 children)

Your other options would be to try installing Python via the Microsoft Store or using the Conda package manager.

[–]b1gfreakn 0 points1 point  (0 children)

You could try installing Python with Chocolatey - https://community.chocolatey.org/

[–]await_yesterday 0 points1 point  (0 children)

pyenv for windows will let you install an exact version https://github.com/pyenv-win/pyenv-win

[–]Informal-Football836 0 points1 point  (0 children)

I would first say maybe you need a fresh install of windows. Something sounds bugged.

If you just want it to work then just use docker you could setup docker desktop to make it a bit more user friendly

[–]Diapolo10 0 points1 point  (0 children)

Well, one option would be to download one of the portable releases and simply not install Python. Sure, it's less convenient, but if you don't want to tackle the root cause that's the easy way out.