[Python] pipreqs has the unicode Error under a virtualenv

Discussão em 'Python' iniciado por Stack, Julho 16, 2025.

  1. Stack

    Stack Membro Participativo

    I tried to use pipeqs to generate requirements.txt in a virtual environment (virtualenv).

    However, I got an error as follows:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 184: ordinal not in range(128)


    Then I tried:

    pipreqs --encoding=utf-8


    And still got the error saying:

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 64: invalid start byte

    Not sure anyone knows how to solve the issue.

    Continue reading...

Compartilhe esta Página