No module named 'packaging'

I uninstalled a package (with conda uninstall) from my base environment. However, the process apparently removed packaging too. So now, conda commands don’t work and I can’t open Anaconda Navigator. I have already created other environments, and my OS is Windows 11. How should I recover Anaconda Navigator? The traceback is below.

Traceback (most recent call last):
File “C:\ProgramData\Anaconda3\Scripts\”, line 11, in
from conda.cli import main
File “C:\ProgramData\Anaconda3\lib\site-packages\conda\”, line 3, in
from .main import main # NOQA
File “C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\”, line 6, in
from …deprecations import deprecated
File “C:\ProgramData\Anaconda3\lib\site-packages\conda\”, line 13, in
from packaging.version import Version, parse
ModuleNotFoundError: No module named ‘packaging’

I would try two things to get conda back to a working state:

1). Try updating conda itself:
conda update conda

2). If this doesn’t fix the problem, uninstall Anaconda Distribution and reinstall it.

1 Like