bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

SyntaxError: invalid character '˜' (U+02DC) #298

Open mingjun1120 opened 2 years ago

mingjun1120 commented 2 years ago

Hi, Does anyone know what is this problem? image

jeremydiba commented 2 years ago

Try rm -rf .venv

Ilirski commented 2 years ago

pipreqs --encoding=utf8 path_directory_here worked for me according to https://stackoverflow.com/questions/51503913/pipreqs-unicodedecodeerror-charmap-codec-cant-decode-byte-0x98-in-position/51511050#51511050