更新时间:2023-02-21 09:40:31
您需要使用cmake从源代码构建它.按照标准安装过程的说明链接,您会发现OPENCVDIR /build/install/python/x64(or86)/3.4/cv.pyd.将此文件和所有.dll文件复制到python site-packges目录中,我能够导入cv2"
you need to build it from source using cmake. Follow the instructions of standard install procedure link, you will find OPENCVDIR/build/install/python/x64(or86)/3.4/cv.pyd. Copy this file and all the .dll files to the python site-packges dir, I was able to "import cv2"