Install TensorFlow and OpenCV together - best practices?

asked 2020-06-15 20:52:44 -0500

Volker Siegel gravatar image

updated 2020-06-16 00:57:46 -0500

What is the "normal" way to TensorFlow and OpenCV together?

I'm most interested in installation on Ubuntu 20.04 - but more general answers are helpful for later readers.

It may be two simple commands - but maybe it's not.

  • Are there any incompatibilities to expect?
  • Are there nontrivial prerequisites?
  • Are there modified versions that could be relevant?
  • Can it be relevant to install older versions of one or both?
  • Are there any common conflicts with other software?
  • Are there differences between a desktop Linux and other environments?
edit retag flag offensive close merge delete


(comes with tf/torch/cv2 preinstalled and GPU/TPU)

berak gravatar imageberak ( 2020-06-16 03:11:11 -0500 )edit

I install both via pip

holger gravatar imageholger ( 2020-06-16 05:17:49 -0500 )edit