Anaconda3 - cp1251.py: 'charmap' codec can't decode byte 0x98 in position 1130: character maps to <undefined>

Viewed 256

I'm trying to install packages from requirements.txt with PIP inside a PIP created environment for YOLOv5 and stumble upon this message.

> File "C:\Users\username\anaconda3\lib\encodings\cp1251.py", line 23, in decode
>     return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position
> 1130: character maps to <undefined>

Also this message erupts when trying to update PIP.

1 Answers

Desperately deleting cp1251.py file in the directory I solved the problem.

Can somebody clarify why this worked ?

Related