Ask Your Question
0

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

asked 2015-07-21 16:47:30 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-16 11:58:13 -0600

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-21 16:47:30 -0600

Seen: 144 times

Last updated: May 16 '19