You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
914 B

2 years ago
---
title: 遇到的错误以及解决办法
date: 2021-06-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)