FileNotFoundError: [Errno 2] "dot" not found in path.

博客主要围绕解决“FileNotFoundError: [Errno 2] 'dot' not found in path”这一错误展开,虽未提及具体解决方法,但核心是针对该文件路径未找到的问题进行处理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决

sudo apt-get install graphviz
Traceback (most recent call last): File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/backend/execute.py", line 78, in run_check proc = subprocess.run(cmd, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/subprocess.py", line 1028, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/subprocess.py", line 1950, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: PosixPath('dot') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/data/user/0/com.cscjapp.python/files/ide_files/ide_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/com.cscjapp.python/files/ide_files/ide_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 73, in <module> File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/_tools.py", line 171, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/rendering.py", line 122, in render rendered = self._render(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/_tools.py", line 171, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/backend/rendering.py", line 326, in render execute.run_check(cmd, File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/graphviz/backend/execute.py", line 81, in run_check raise ExecutableNotFound(cmd) from e graphviz.backend.execute.ExecutableNotFound: failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH /storage/emulated/0/Android/data/com.cscjapp.python/files/CJ_IDE/PythonProject/默认目录/Helloworld/src $
03-09
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值