Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.6k views
in Technique[技术] by (71.8m points)

conda - remove or fix broken anaconda installation

I have a badly broken Anaconda installation. When I go to Windows Settings > Apps & Features and search Anaconda, I see this:

enter image description here

Attempting to uninstall gives me the following pop-up error:

Windows cannot find 'C:UsersxianxAppDataLocalContinuumanaconda3Uninstall-Anaconda3.exe'.
Make sure you typed the name correctly, and then try again.

enter image description here

I attempted to follow this YouTube video, using regedit to remove the installation, but I couldn't find anything with the name "anaconda" in the list. https://www.youtube.com/watch?v=StrCtt9B9kQ

Inside this regedit though, I did find HKEY_LOCAL_MACHINE > SOFTWARE > Python > Continuum and I deleted that folder. It did not help.

Simply reinstalling Anaconda results in a new version: enter image description here

Uninstalling the new version does nothing to fix the old corrupted version.

When I try to start Anaconda Prompt with the new version installed, I get this message:

Traceback (most recent call last):
  File "C:UsersxianxAnaconda3Scriptsconda-script.py", line 11, in <module>
    from conda.cli import main
ModuleNotFoundError: No module named 'conda'

When I try to verify the new installation, I get:

C:Usersxianx>conda list
'conda' is not recognized as an internal or external command,
operable program or batch file.

I tried to follow some of the solutions here, but none of them work for me. My Anaconda Prompt does not seem to work properly, my conda command is broken, uninstalling and reinstalling doesn't work: 'Conda' is not recognized as internal or external command

C:Usersxianx>where conda
INFO: Could not find files for the given pattern(s).

How do I fix this mess?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I do not know what to suggest to delete it properly but what can be tried:
0)Delete the newer version (Delete all versions of Conda)
1) look over C://Program Files and Program Files (x86) for Anaconda, python and continium folder and check C://Anaconda3 and C:UsersxianxAppDataLocalContinuum check if this folder is still exists.
2) Try to use Uninstaller app as RevoUninstaller or IObit Uninstaller (apps can be deleted after helping deleting Conda) they search all folders and especially Registry. 3)Install new Anaconda


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...