同时安装 Tensorflow 2.4 和 opencv?

Install Tensorflow 2.4 and opencv at the same time?

当我尝试使用 conda 安装 opencv (4.01) 时,它想要将我的 tensorflow 从 2.4 降级到 2.1。这是conda的问题,还是真的不行?

如你所见here,OpenCV 4.01是2018年的,所以它使用的是旧版本的TensorFlow。您可以尝试安装更新版本的 OpenCV,尝试使用 conda update 命令或使用 conda install -c conda-forge opencv

更新您的 conda 包