无法使用visual studio 2017从pypi for python安装BGSlibrary(pybgs)库

2024-09-27 23:17:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经试了3天来安装这个library。它使用CMake,我不明白如何在VisualStudio中添加OpenCV路径。我试过很多东西,比如: 1.使用CMake GUI生成.sln文件,然后生成。也有一个错误。 2.尝试使用CMake通过cmd添加,但我面临另一个错误

我相信有一种简单的方法可以通过VisualStudio直接实现,我对它并不熟悉,而且似乎找不到它。如果有人愿意用简单的方式告诉我如何使用VisualStudioPython3.6安装库

以下是我在尝试通过pip install pybgs安装pybgs库后在VS 2017中遇到的错误

ERROR: Failed building wheel for pybgs
Failed to build pybgs
Installing collected packages: pybgs
    Running setup.py install for pybgs: started
    Running setup.py install for pybgs: finished with status 'error'
    ERROR: Command errored out with exit status 1:    

    CMake Error at CMakeLists.txt:113 (find_package):
    By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "OpenCV", but
    CMake did not find one.

    Could not find a package configuration file provided by "OpenCV" with any
    of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

Tags: installtocmakepackagefor错误withnot

热门问题