|, The first step to put bug
Traceback (most recent call last): File "c:\programdata\anaconda3\envs\sql\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\programdata\anaconda3\envs\sql\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\ProgramData\Anaconda3\envs\sql\Scripts\pipreqs.exe\__main__.py", line 9, in <module> File "c:\programdata\anaconda3\envs\sql\lib\site-packages\pipreqs\pipreqs.py", line 470, in main init(args) File "c:\programdata\anaconda3\envs\sql\lib\site-packages\pipreqs\pipreqs.py", line 409, in init follow_links=follow_links) File "c:\programdata\anaconda3\envs\sql\lib\site-packages\pipreqs\pipreqs.py", line 122, in get_all_imports contents = f.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 2411: illegal multibyte sequence
II, Solutions
That this is a problem according to the coding bug tips, we only need to change the encoding
1, find the location pipreqs package
There are tips in the bug has been specifically shown to the first few lines
2, modify the coding
Straight to the source of the number of rows above tips, modify, complete
Save, ok
Re-export