1.错误信息:AttributeError: module ‘pydot‘ has no attribute ‘find_graphviz‘
1.安装pydot-ng
由于pydot里面已经没有这个find_graphviz()方法了,选择安装pydot-ng
activate python虚拟环境
pip install pydot-ng
2.安装graphviz
到graphviz官网上下载exe并点击安装,勾选添加到全局变量。
或者记住安装位置选择手动添加到path变量里面。
测试是否安装成功:win+r进入cmd
 - skipping
解决办法:参考博客
修改命令如下 :
pip install Pandas -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
–trusted-host 是信任这个地址,可以免去ssl验证
6.安装torch报错
错误信息:unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
解决办法:参考博客
使用pip代替conda安装
将命令:
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
替换为:
pip install torch==1.10.2+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113 --trusted-host pypi.tuna.tsinghua.edu.cn