打算画图,然后发现一直报错:AttributeError: (module ‘scipy.sparse‘ has no attribute ‘coo_array‘)
网上说可能是networkx 和scipy 的版本原因,于是我先更新了scipy 原来的scipy是1.6.2 这个版本,更新为 :1.8版本
networkx 一直是 3.1 版本的
补充几个常见指令:
1. 下载新版本库之前先卸载旧版本库:
pip uninstall XXXX
2. 指定下载某个版本的库(并且指定一下下载的网站):
pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple scipy==1.8
指定版本 为1.8版本