简体   繁体   中英

How to import opencv in python (not from virtualenv) [UBUNTU]

I have problem about importing OpenCV to my project. Not actually problem, but I didn't find how to do that. I know it's trivial, but I really don't know.

I have opencv downloaded and compiled in my home directory. I know how to import it in virtualenv, but how to import it directly from original - non virtualenv python2.7?

要在您的python项目中import cv2 opencv,请import cv2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM