Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

import cv2 error on windows: missing configuration files

$
0
0
OpenCV = from master branch 7/10/20 Operating System / Platform => Windows 64 Bit Win10 Compiler => Visual Studio 2019 **problem:** I successfully built opencv in the latest cmake, and then built in VS. My PC recognizes python but does not recognize cv2. I installed both opencv and python in the c:\ drive. I tried adding these paths to my user environment variables, no luck. All my python paths in cmake are also correct. What could be the problem here? **error:** >>> C:\>python Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "", line 1, in File "C:\Python37\cv2\__init__.py", line 96, in bootstrap() File "C:\Python37\cv2\__init__.py", line 62, in bootstrap ], True) File "C:\Python37\cv2\__init__.py", line 56, in load_first_config raise ImportError('OpenCV loader: missing configuration file: {}. Check OpenCV installation.'.format(fnames)) ImportError: OpenCV loader: missing configuration file: ['config-3.7.py', 'config-3.py']. Check OpenCV installation. My paths: PYHTONPATH: C:\Python37\python.exe C:\Python37\include C:\Python37\libs C:\Python37\lib C:\Python37\site-packages C:\Python37\Lib\site-packages\numpy\core\include C:\Python37\Lib\site-packages\cv2\python-3.7 C:\Python37\Lib\site-packages\cv2

Viewing all articles
Browse latest Browse all 2088

Trending Articles