首页 > 编程知识 正文

在"导入的模块graphviz "中找不到引用“有向”错误

时间:2023-05-03 13:30:59 阅读:272816 作者:2368

问题一描述

今天在导包 from graphviz import Digraph 时,Digraph 报红线。
错误:Cannot find reference 'Digraph' in 'imported module graphviz'

问题一解决 conda install -c anaconda python-graphviz

参考链接:https://github.com/quadram-institute-bioscience/albatradis/issues/7

问题二描述

ImportError: this version of pandas is incompatible with numpy < 1.17.3 your numpy version is 1.16.4. Please upgrade numpy to >= 1.17.3 to use this pandas version

问题二解决 pip install numpy --upgrade --ignore-installed

参考链接:https://stackoverflow.com/questions/28517937/how-can-i-upgrade-numpy
于是又出现问题 ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'D:\Anaconda3\envs\advanced_ai_pytorch\Lib\site-packages\numpy\.libs\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-wi n_amd64.dll' Consider using the–useroption or check the permissions.

继续解决:

pip install --user numpy --upgrade --ignore-installed

参考链接:https://www.cxyzjd.com/article/weixin_44827418/105443681

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。