在进行神经网络学习中,出现了这个bug,上网查之后,明白可能是版本不符的问题
所以
pip uninstall numpy ##卸载 pip install numpy ##安装
报错
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
matplotlib 3.4.3 requires pyparsing>=2.2.1, but you have pyparsing 2.2.0 which is incompatible.
说明只安装了部分包, pyparsing需要大于等于2.2.1,而我的是2.2.0,
在pycharm中File->settting->project->python interpreter
这个位置是我们库存放的位置 。
通过文件夹看后,发现确实是这样
所以卸载安装这个库
然后安装
pip install pyparsing ##安装
接着就能使用了



