简体   繁体   中英

Unable to run pycallgraph for python

I'm using windows 7 , with python 2.7 and pip 8.0.2

i have installed pyCallGraph for python using pip in cygwin

pip install pycallgraph

When trying to execute it :

$ pycallgraph graphviz -- ../main.py
    C:\python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/pycallgraph': [Errno 2] No such file or directory

That's weird because pycallgraph is present in the Script folder and i'm executing the commanf from the same folder

If i ran the command for the second time :

$ pip install pycallgraph
Requirement already satisfied (use --upgrade to upgrade): pycallgraph in c:\python27\lib\site-packages

I'm new to python , any help will be appreciated , thanks

I think I'm late to the party... pip install graphviz

pycallgraph makes use of graphviz to visualize graphs. Hence, a prerequisite of pycallgraph is graphviz. I had a similar issue, and installing graphviz fixed the problem for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM