简体   繁体   English

pycallgraph与Spyder不起作用

[英]Pycallgraph with Spyder does not work

I ran the below code verbatim (which is an official sample code): 我逐字运行了以下代码(这是官方示例代码):
http://pycallgraph.slowchop.com/en/master/examples/basic.html http://pycallgraph.slowchop.com/en/master/examples/basic.html

And I get the below error: 我得到以下错误:

'The command "{}" is required to be in your path.'.format(cmd)) pycallgraph.exceptions.PyCallGraphException: The command "dot" is required to be in your path. “命令“ {}”必须位于路径中。”。format(cmd))pycallgraph.exceptions.PyCallGraphException:命令“点”必须位于路径中。

I'm running the program in Spyder on Windows from the directory : ' C:\\MyDocs\\pleasework.py ' 我正在Windows下的Spyder中从以下目录运行程序:' C:\\ MyDocs \\ pleasework.py '
' C:\\MyDocs ' is present in the sys.path as well sys.path中也存在“ C:\\ MyDocs

The pycallgraph module tries to use the dot command, which is not available in your system. pycallgraph模块尝试使用dot命令,该命令在您的系统中不可用。 You should install the dot utility which is provided by the graphviz package. 您应该安装graphviz软件包提供的dot实用程序。 http://www.graphviz.org/Download_windows.php http://www.graphviz.org/Download_windows.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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