First time here? Check out the FAQ!

Ask Your Question
0

How to maintain two different Open cv versions in Python under two different namespaces

asked Jul 21 '15

desri gravatar image

Hi,

I am interested in maintaining 2 different Open-cv versions 2.4.x and 3.0.0 under two different namespaces in Python-2.7.x. Is that even possible? If so, could someone please provide some hints?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered May 16 '19

If you want to use different applications I recommend you to use pyvenv or virtualenv wrapper. Then you can have each version in a different virtual environment.

See more for venv ins https://docs.python.org/3/library/ven...

And there are a lot of tutorials on how using it. It's quite simple and let your python libraries more organized.

However if you talking about building from source two opencv versions, then I don't know how to do either, I think both version will conflict on calling its funcitons that share the same name. I have tried to build one version from source and changing all namespaces and funtion name but it took me a lot of time and no success.

Let me know if you have found some solution.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jul 21 '15

Seen: 192 times

Last updated: May 16 '19