Error running conda env list

I have updated my conda installation on Windows with the command
conda update -n base conda

When I run
conda env list
I get the following error

File “C:\Users\user_name\miniconda3\lib\site-packages\urllib3\”, line 287, in BaseHTTPResponse
DECODER_ERROR_CLASSES += (brotli.error,)
AttributeError: module ‘brotli’ has no attribute ‘error’

Good afternoon, you can solve this issue by commenting these lines in the file


enter image description here

and then install brotli library by running either

pip install brotli


conda install brotli

After successful installation, uncomment above lines. Do whatever you want now. Error should not come.