I updated anaconda using Anaconda Command Prompt.
After update whenever I run any command ex: conda info or conda list I get the below error
module 'brotli' has no attribute 'error'I would Really appreciate any help on this! Not sure how it solve it
9 Answers
I solved this issue by commenting lines 376 & 377 in the file
C:\ProgramData\Anaconda3\Lib\site-packages\urllib3\response.pyand then install brotli library by running either
pip install brotlior
conda install brotliAfter successful installation, uncomment above lines. Do whatever you want now. Error should not come.
7I solved the issue by installing urllib3
Just open the terminal and type:
conda install -c anaconda urllib3or you can also try:
conda install -c conda-forge brotlipy 1 I solved the issue by installing brotlipy
Just open the terminal and type:
conda install -c anaconda brotlipy the commands below works for me somehow:
pip install -U urllib3
pip install -U brotlipy Yet another variation on a fix: for me (Windows 10, minconda3), installing brotli via pip fixed the problem.
Since I could not use any of these conda commands (list, update, install), the solution had to come from pip! Even though the error message pointed to urllib3, I first reinstalled brotli with pip, then performed my initial conda list command flawlessly... so I did not update or modify urllib3 in any way, which is kind of strange!
I solved this problem by the following way
1- comment the lines
2- conda install brotli
3- run anaconda like normal i kept the lines 376 and 377 commented
I faced the same issue, but I was able to fix it by simply installing brotli.
conda install brotliBrotli v1.0.7 fixed the problem for me.
1I did the following:
- commented out the recommended lines above.
- launched the anaconda navigator
- searched for any packages with "brotli"
- installed / updated all of those
- uncommented out the lines
Navigator is back working but not sure of any other downstream issues yet.
I solved this issue by commenting lines 389 & 390 in the file
C:\Users\(user)\AppData\Roaming\Python\Python36\site-packages\urllib3\response.pyand then install brotli library by running
pip install brotli