--- title: 遇到的错误以及解决办法 date: 2020-12-21 11:28:39 updated: tags: categories: keywords: description: top_img: comments: cover: toc: toc_number: toc_style_simple: copyright: copyright_author: copyright_author_href: copyright_url: copyright_info: katex: true highlight_shrink: aside: --- ### 1, Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work. pip install pydot pip install graphviz (这种方法无效,可能是安装的时候没有依赖,下面的可以正常解决问题) conda install graphviz ### 2, python模块调用时,相对路径问题 [https://blog.csdn.net/ljl6158999/article/details/78657799](https://blog.csdn.net/ljl6158999/article/details/78657799) 临时添加搜索路径--python sys.path.append()和sys.path.insert() [https://blog.csdn.net/xc_zhou/article/details/81417337](https://blog.csdn.net/xc_zhou/article/details/81417337)