pipreqs使用踩坑

1
pip install pipreqs
1
pipreqs .

--encoding=utf8参数

1
pipreqs . --encoding=utf8

check_hostname requires server_hostname

这可能是因为使用代理造成的,不管怎么样,解决方法是降低urllib3版本:

1
pip install  urllib3==1.25.11