我正在尝试在 Windows 10 上的 Anaconda Python\xc2\xa03.7 上安装 OpenCV、dlib。
\n我已经安装了 Visual studio 2015 作为先决条件以及 CMake。当我尝试在计算机上安装 dlib 时,出现以下错误。我也无法安装OpenCV。我尝试使用 .whl 文件安装 dlib。但是,仍然没有运气。
\nCollecting dlib\n Using cached https://files.pythonhosted.org/packages/1e/62/aacb236d21fbd08148b1d517d58a9d80ea31bdcd386d26f21f8b23b1eb28/dlib-19.18.0.tar.gz\nBuilding wheels for collected packages: dlib\n Building wheel for dlib (setup.py) ... error\n ERROR: Command errored out with exit status 1:\n command: \'C:\\Users\\dbi227\\AppData\\Local\\Continuum\\anaconda3\\envs\\opencv-env\\python.exe\' -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'C:\\\\Users\\\\dbi227\\\\AppData\\\\Local\\\\Temp\\\\pip-install-9vjrsx_l\\\\dlib\\\\setup.py\'"\'"\'; __file__=\'"\'"\'C:\\\\Users\\\\dbi227\\\\AppData\\\\Local\\\\Temp\\\\pip-install-9vjrsx_l\\\\dlib\\\\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\\dbi227\\AppData\\Local\\Temp\\pip-wheel-2nm313mu\' --python-tag cp37\n cwd: C:\\Users\\dbi227\\AppData\\Local\\Temp\\pip-install-9vjrsx_l\\dlib\\\n Complete output (73 lines):\n running bdist_wheel\n running build\n …Run Code Online (Sandbox Code Playgroud)