tensorflow 和 numpy 兼容,numpy的版本必须小于 (1.19.2)
pip install numpy==1.19.2
但是networkx 和numpy 的兼容关系是 numpy必须要更新到最新的版本
import matplotlib.pyplot as plt 报错
python -version 3.8.5
numpy 1.20.2
import matplotlib.pyplot as plt
报错ImportError: DLL(dynamic link libraries) load failed while importing _multiarray_umath: 找不到指定的模块。
尝试解决
- 博客说升级numpy版本,但是升级到最新依旧无效,反而破坏了TensorFlow和numpy的版本兼容
- 切换到base版本的解释器,不知道为什么会有这么多解释器。。。。
解决
- 将解释器换为python -base 版本,鬼知道那么多解释器