前提・実現したいこと
pythonで顔認識を作るためにdlib19をインストールしたいです
cmakeをインストールし、visualsutdio2022のc++の実行環境をインストールしました。
VisualStudioのコマンドプロンプトからpip install dlibを実行したところ、以下のエラーメッセージが出ました
おそらくエラーメッセージであろうメッセージ
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(514,5): warning MSB8029: 中間ディレクトリまたは出力ディレクトリを一時ディレク トリに置くことはできません。インクリメンタル ビルドで問題が発生する可能性があります。 [C:\Users\zhang\AppData\Local\Temp\pip-install-b6uopmvw\dlib_67175ce4477e4539b559e9e7763eff16\build\temp.win32-3.9\Release\ZERO_CHECK.vcxproj] Checking Build System C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(514,5): warning MSB8029: 中間ディレクトリまたは出力ディレクトリを一時ディレク トリに置くことはできません。インクリメンタル ビルドで問題が発生する可能性があります。 [C:\Users\zhang\AppData\Local\Temp\pip-install-b6uopmvw\dlib_67175ce4477e4539b559e9e7763eff16\build\temp.win32-3.9\Release\dlib_build\dlib.vcxproj] subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1. ERROR: Command errored out with exit status 1: 'C:\Users\zhang\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-pwk_7h7o\\dlib_488e8889ffb44be798fd6c58fbfad090\\setup.py'"'"'; __file__='"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-pwk_7h7o\\dlib_488e8889ffb44be798fd6c58fbfad090\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\zhang\AppData\Local\Temp\pip-record-ltr8q3hp\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\zhang\anaconda3\Include\dlib' Check the logs for full command output.
補足情報(FW/ツールのバージョンなど)
cmake version : 3.22.1
VisualStuidoi Community 2022(最新版)
Python 3.9.7