Skip to content

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

Open
@JacksJack101

Description

@JacksJack101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions