Skip to content

error when compile debug opencv-python #973

Open
@beanduan22

Description

@beanduan22

Describe the doc issue

I wanna manul compile debug opencv-python in windows, and I try a lot of times, but there always show this error, I don't know how to fix it.

git clone --recursive https://github.com/opencv/opencv-python.git
cd .\opencv-python\
set CMAKE_ARGS=-DCMAKE_VERBOSE_MAKEFILE=ON
set VERBOSE=1
pip install scikit-build
python setup.py bdist_wheel --build-type=Debug

Fix suggestion

File "C:\Users\uqbduan\Desktop\cover_opencv\opencv-python\setup.py", line 411, in _classify_installed_files_override
with open(config_py, 'w') as opencv_init_config:
^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '_skbuild\win-amd64-3.12\cmake-install\python\cv2\config-3.py'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions