我正在尝试使用pipreqs,但出现错误:
pipreqs --debug .
/usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.9) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "/home/amitli/.local/bin/pipreqs", line 8, in <module>
sys.exit(main())
File "/home/amitli/.local/lib/python3.6/site-packages/pipreqs/pipreqs.py", line 470, in main
init(args)
File "/home/amitli/.local/lib/python3.6/site-packages/pipreqs/pipreqs.py", line 409, in init
follow_links=follow_links)
File "/home/amitli/.local/lib/python3.6/site-packages/pipreqs/pipreqs.py", line 122, in get_all_imports
contents = f.read()
File "/usr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 64: invalid start byte
更多信息:
python --version
Python 3.6.9
pip --version
pip 20.1.1
我曾尝试与以下人员一起跑步:
pipreqs --encoding=utf-8 --debug .
但同样的结果
荣是什么?我如何修复它
怎么了
目前没有回答
相关问题 更多 >
编程相关推荐