pip install git+https://github.com/Technologicat/pyan
或
pip install pyan3==1.1.1
https://github.com/Technologicat/pyan
https://pythonawesome.com/pyan3-offline-call-graph-generator-for-python-3/
bug
https://github.com/Technologicat/pyan/issues/64
pyan3 .\graph_demo.py --html > xx.html
python -m pyan
dot -Tsvg xxx.dot > xxx.svg
或使用pycharm dot language插件,vscode有类似插件