安装matplotlib提示问题如下:
tensorflow-gpu 2.6.0 requires numpy~=1.19.2, but you have numpy 1.24.4 which is incompatible.
于是给numpy降低了版本:
命令:pip install -U numpy==1.19.2
又出现了提示
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.7.5 requires numpy<2,>=1.20, but you have numpy 1.19.2 which is incompatible.
说明matplotlib与numpy版本不兼容
使用命令查看了matplotlib信息:conda search matplotlib --info
仔细看了下,发现3.5.3版本比较合适,pip install -U matplotlib==3.5.2
降低版本后没有出现问题提示了