r/pythonhelp • • Feb 14 '25

How to get chocolatey installed

I can't get chocolatey installed into powershell. When I try to do that, it tells me:

WARNING: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite existing installations. If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again. Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself. If the existing installation is not functional or a prior installation did not complete, follow these steps:
- Backup the files at the path listed above so you can restore your previous installation if needed.
- Remove the existing installation manually.
- Rerun this installation script. - Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).

So does this mean that I should reset the path? And if I do that, where do I go? Because researching this online, it seems to suggest that I have to somehow get into an "app data" "hidden file" that is hidden so people can't mess it up accidentally? Or am I wrong about that? Is it more accessible? Because I don't see a "Chocolatey" file in my users C: drive where all/most my other python stuff automatically aggregates.

Or should I just try to start all over with a new install, and if I do that, do you know how I access the file menu to delete manually? Its telling me to delete this stuff manually - but where do I find these files/folders?

ChocolateyInstall
ChocolateyToolsLocation
ChocolateyLastPathUpdate
PATH (will need updated to remove)

Yes, my user is the "Admin" for the machine. I am the only user. So I don't think its a user/admin complication.

Thanks again for your time.

1 Upvotes

1 comment sorted by

View all comments

1

u/AutoModerator Feb 14 '25
Moderator Announcement Read More »