I am making a conda virtual environment using an environment.yml file. In my package I want to use opencv version 4.1, from conda-forge. It installs great using the following line in the yml file:
- conda-forge::opencv=4.1
Unfortunately another package I'm including as a dependency has opencv-python as a dependency. Hence, once the environment is resolved, you end up with both opencv (version 4.1) and opencv-python (version 4.5) installed. This leads to problems when running my code.
Luckily, when I manually uninstall opencv-python everything works just fine in my package.
The problem is I don't want my github repo install instructions to be like: "Create this virtual environment with environment.yml file. Oh BTW you then need to enter pip uninstall opencv-python or else you will run into problems."
Is there a way to take care of this last pruning step in my environment.yml file, so things will just work out of the box?