python 版本2.7.16
pip install pipreqs
pipreqs 版本 version = ‘0.4.11’
执行pipreqs 报错。
bin % pipreqs --help
Traceback (most recent call last):
File "./pipreqs", line 5, in <module>
from pipreqs.pipreqs import main
File "/Users/bailongma/.pyenv/versions/2.7.16/lib/python2.7/site-packages/pipreqs/pipreqs.py", line 51, in <module>
from pipreqs import __version__
ImportError: cannot import name __version__
解决方案:指定安装0.4.8版本解决问题
pip install pipreqs==0.4.8