pycharm2022.2.3 professional
python 3.9
参考
https://www.coder.work/article/7537314
强制通过pip重新安装将解决此问题。
pip install matplotlib --force-reinstall
如果是Anaconda,以管理员身份启动
(我的是pycharm,conda没有尝试)
conda install freetype --force-reinstall
强制安装之后又提示如下问题:
tensorflow 2.4.0 requires numpy~=1.19.2, but you have numpy 1.23.4 which is incompatible.
tensorflow 2.4.0 requires six~=1.15.0, but you have six 1.16.0 which is incompatible.
tensorflow 2.4.0 requires typing-extensions~=3.7.4, but you have typing-extensions 3.10.0.0 which is incompatible.
scipy 1.7.1 requires numpy<1.23.0,>=1.16.5, but you have numpy 1.23.4 which is incompatible.
发现其他应用包版本与TensorFlow要求版本不一样,且都高于要求版本
更新TensorFlow
pip install -U tensorflow
新版本的pycharm错误提示信息很详细,基本能看懂怎么回事
每个错误情况都不一样,特别是连续出错,解决问题也要根据提示一步一步来
小记一下