OpenCV-Python-Tutorial icon indicating copy to clipboard operation
OpenCV-Python-Tutorial copied to clipboard

Help with below error installing opencv-python into .venv on VScode

Open JacksJack101 opened this issue 3 years ago • 1 comments

llecting opencv-python Using cached opencv-python-4.4.0.44.tar.gz (88.9 MB) Requirement already satisfied: numpy>=1.17.3 in c:\users\jack\desktop\python\colour_code.venv\lib\site-packages (from opencv-python) (1.19.2) Building wheels for collected packages: opencv-python Building wheel for opencv-python (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\jack\desktop\python\colour_code.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-bspvj863\opencv-python\setup.py'"'"'; file='"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-bspvj863\opencv-python\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Jack\AppData\Local\Temp\pip-wheel-zyukflwo' cwd: C:\Users\Jack\AppData\Local\Temp\pip-install-bspvj863\opencv-python
Complete output (162 lines):


-- Trying "Ninja (Visual Studio 15 2017 Win64 v141)" generator






-- Not searching for unused variables given on the command line. -- The C compiler identification is unknown CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE): No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred! See also "C:/Users/Jack/AppData/Local/Temp/pip-install-bspvj863/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log". See also "C:/Users/Jack/AppData/Local/Temp/pip-install-bspvj863/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeError.log".







-- Trying "Ninja (Visual Studio 15 2017 Win64 v141)" generator - failure


-- Trying "Visual Studio 15 2017 Win64 v141" generator






-- Not searching for unused variables given on the command line. CMake Error at CMakeLists.txt:2 (PROJECT): Generator

JacksJack101 avatar Oct 27 '20 21:10 JacksJack101

sorry, can't help I use macos and linux

makelove avatar Oct 30 '20 09:10 makelove