【Debug日记】albumentations包安装失败解决方案

直接pip安装pip install albumentations
报错:

  ERROR: Command errored out with exit status 1:command: 'D:\anaconda3\envs\pytorch\python.exe' 'D:\anaconda3\envs\pytorch\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\verse\AppData\Local\Temp\tmpv1nq01li'cwd: C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80Complete output (193 lines):---------------------------------------------------------------------------------- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator-----------------------------------------------------------------------------------------------------------------------Not searching for unused variables given on the command line.CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):Compatibility with CMake < 3.5 will be removed from a future version ofCMake.Update the VERSION argument <min> value or use a ...<max> suffix to tellCMake that the project does not need compatibility with older versions.CMake Error at CMakeLists.txt:2 (PROJECT):GeneratorNinjadoes not support platform specification, but platformx64was specified.-- Configuring incomplete, errors occurred!------------------------------------------------------------------------------------------------------------------------- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure------------------------------------------------------------------------------------------------------------------------------------------------------------------ Trying 'Visual Studio 17 2022 x64 v143' generator-----------------------------------------------------------------------------------------------------------------------Not searching for unused variables given on the command line.CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):Compatibility with CMake < 3.5 will be removed from a future version ofCMake.Update the VERSION argument <min> value or use a ...<max> suffix to tellCMake that the project does not need compatibility with older versions.-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.-- The C compiler identification is MSVC 19.37.32824.0-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped-- Detecting C compile features-- Detecting C compile features - done-- The CXX compiler identification is MSVC 19.37.32824.0-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped-- Detecting CXX compile features-- Detecting CXX compile features - done-- Configuring done (3.7s)-- Generating done (0.0s)-- Build files have been written to: C:/Users/verse/AppData/Local/Temp/pip-install-0r8a7kdz/opencv-python-headless_0424c6bf158f4491a240264e96a43d80/_cmake_test_compile/build------------------------------------------------------------------------------------------------------------------------- Trying 'Visual Studio 17 2022 x64 v143' generator - success--------------------------------------------------------------------------------Configuring ProjectWorking directory:C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-buildCommand:'C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\opencv' -G 'Visual Studio 17 2022' '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.6.13 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' '-DPYTHON_LIBRARY:PATH=D:\anaconda3\envs\pytorch\libs\python36.lib' '-DPython_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPython_ROOT_DIR:PATH=D:\anaconda3\envs\pytorch' '-DPython_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPython3_ROOT_DIR:PATH=D:\anaconda3\envs\pytorch' '-DPython3_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\numpy\core\include' -T v143 -A x64 '-DPYTHON3_EXECUTABLE=D:\anaconda3\envs\pytorch\python.exe' '-DPYTHON_DEFAULT_EXECUTABLE=D:\anaconda3\envs\pytorch\python.exe' -DPYTHON3_INCLUDE_DIR=D:/anaconda3/envs/pytorch/Include -DPYTHON3_LIBRARY=D:/anaconda3/envs/pytorch/libs/python36.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DWITH_WIN32UI=OFF -DWITH_QT=OFF -DWITH_GTK=OFF -DCMAKE_BUILD_TYPE:STRING=Release-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.-- The CXX compiler identification is MSVC 19.37.32824.0-- The C compiler identification is MSVC 19.37.32824.0-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - failed-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - brokenCMake Error at C:/Users/verse/AppData/Local/Temp/pip-build-env-idsrka90/overlay/Lib/site-packages/cmake/data/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message):The C++ compiler"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe"is not able to compile a simple test program.It fails with the following output:Change Dir: 'C:/Users/verse/AppData/Local/Temp/pip-install-0r8a7kdz/opencv-python-headless_0424c6bf158f4491a240264e96a43d80/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/CMakeScratch/TryCompile-enjbb7'Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_73365.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n閫傜敤浜\x8e .NET Framework MSBuild 鐗堟湰 17.7.2+d6990bcfa鐢熸垚鍚\xaf鍔ㄦ椂闂翠负 2024/5/8 11:38:44銆\x82鑺傜偣 1 涓婄殑椤圭洰鈥淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj鈥\x9d(榛樿\xaeょ洰鏍\x87)銆\x82PrepareForBuild:姝e湪鍒涘缓鐩\xae褰曗\x80渃mTC_73365.dir\Debug\鈥濄\x80\x82C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: 涓\xad闂寸洰褰曟垨杈撳嚭鐩\xae褰曟棤娉曢┗鐣欏湪涓存椂鐩\xae褰曚笅锛屽洜涓鸿繖鍙\xaf鑳戒細瀵艰嚧澧為噺鐢熸垚鍑 虹幇闂\xae棰樸\x80\x82 [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]姝e湪鍒涘缓鐩\xae褰曗\x80淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\Debug\鈥濄\x80\x82姝e湪鍒涘缓鐩\xae褰曗\x80渃mTC_73365.dir\Debug\cmTC_73365.tlog\鈥濄\x80\x82InitializeBuildStatus:姝e湪鍒涘缓鈥渃mTC_73365.dir\Debug\cmTC_73365.tlog\unsuccessfulbuild鈥濓紝鍥犱负宸叉寚瀹氣\x80淎lwaysCreate鈥濄\x80\x82姝e湪瀵光\x80渃mTC_73365.dir\Debug\cmTC_73365.tlog\unsuccessfulbuild鈥濇墽琛\x8c Touch 浠诲姟銆\x82ClCompile:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_73365.dir\Debug\\" /Fd"cmTC_73365.dir\Debug\vc143.pdb" /external:W3 /Gd /TP /errorReport:queue "C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\testCXXCompiler.cxx"鐢ㄤ簬 x64 鐨\x84 Microsoft (R) C/C++ 浼樺寲缂栬瘧鍣\xa8 19.37.32824 鐗\x88testCXXCompiler.cxx鐗堟潈鎵\x80鏈\x89(C) Microsoft Corporation銆備繚鐣欐墍鏈夋潈鍒┿\x80\x82cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_73365.dir\Debug\\" /Fd"cmTC_73365.dir\Debug\vc143.pdb" /external:W3 /Gd /TP /errorReport:queue "C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\testCXXCompiler.cxx"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003: 鎸囧畾鐨勪换鍔″彲鎵ц\xa1屾枃浠垛\x80淐L.exe鈥濇湭鑳借繍琛屻\x80係ystem.IO.DirectoryNotFoundException: 鏈\xaa 鑳芥壘鍒拌矾寰勨\x80淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.dir\Debug\cmTC_73365.tlog鈥濈 殑涓\x80閮ㄥ垎銆\x82 [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.InternalConstruct(ITask ownerTask, ITaskItem[] tlogFiles, Boolean constructOutputsFromTLogs) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]宸插畬鎴愮敓鎴愰」鐩\xae鈥淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj鈥\x9d(榛樿\xaeょ洰鏍\x87)鐨勬搷浣\x9c - 澶辫触銆\x82鐢熸垚澶辫触銆\x82鈥淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj鈥\x9d(榛樿\xaeょ洰鏍\x87) (1) ->(PrepareForBuild 鐩\xae鏍\x87) ->C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: 涓\xad闂寸洰褰曟垨杈撳嚭鐩\xae褰曟棤娉曢┗鐣欏湪涓存椂鐩\xae褰曚笅锛屽洜涓鸿繖鍙\xaf鑳戒細瀵艰嚧澧為噺鐢熸垚 鍑虹幇闂\xae棰樸\x80\x82 [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]鈥淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj鈥\x9d(榛樿\xaeょ洰鏍\x87) (1) ->(ClCompile 鐩\xae鏍\x87) ->C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003: 鎸囧畾鐨勪换鍔″彲鎵ц\xa1屾枃浠垛\x80淐L.exe鈥濇湭鑳借繍琛屻\x80係ystem.IO.DirectoryNotFoundException: 鏈\xaa鑳芥壘鍒拌矾寰勨\x80淐:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.dir\Debug\cmTC_73365.tlog鈥濈殑涓\x80閮ㄥ垎銆\x82 [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.InternalConstruct(ITask ownerTask, ITaskItem[] tlogFiles, Boolean constructOutputsFromTLogs) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(741,5): error MSB6003:    鍦\xa8 Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-build\CMakeFiles\CMakeScratch\TryCompile-enjbb7\cmTC_73365.vcxproj]1 涓\xaa璀﹀憡1 涓\xaa閿欒\xaf\xaf宸茬敤鏃堕棿 00:00:00.33CMake will not be able to correctly generate this project.Call Stack (most recent call first):CMakeLists.txt:120 (enable_language)-- Configuring incomplete, errors occurred!Traceback (most recent call last):File "C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 639, in setuplanguages=cmake_languages,File "C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\skbuild\cmaker.py", line 333, in configure"An error occurred while configuring with CMake.\n"An error occurred while configuring with CMake.Command:'C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\opencv' -G 'Visual Studio 17 2022' '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.6.13 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' '-DPYTHON_LIBRARY:PATH=D:\anaconda3\envs\pytorch\libs\python36.lib' '-DPython_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPython_ROOT_DIR:PATH=D:\anaconda3\envs\pytorch' '-DPython_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=D:\anaconda3\envs\pytorch\python.exe' '-DPython3_ROOT_DIR:PATH=D:\anaconda3\envs\pytorch' '-DPython3_INCLUDE_DIR:PATH=D:\anaconda3\envs\pytorch\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\verse\AppData\Local\Temp\pip-build-env-idsrka90\overlay\Lib\site-packages\numpy\core\include' -T v143 -A x64 '-DPYTHON3_EXECUTABLE=D:\anaconda3\envs\pytorch\python.exe' '-DPYTHON_DEFAULT_EXECUTABLE=D:\anaconda3\envs\pytorch\python.exe' -DPYTHON3_INCLUDE_DIR=D:/anaconda3/envs/pytorch/Include -DPYTHON3_LIBRARY=D:/anaconda3/envs/pytorch/libs/python36.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DWITH_WIN32UI=OFF -DWITH_QT=OFF -DWITH_GTK=OFF -DCMAKE_BUILD_TYPE:STRING=ReleaseSource directory:C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\opencvWorking directory:C:\Users\verse\AppData\Local\Temp\pip-install-0r8a7kdz\opencv-python-headless_0424c6bf158f4491a240264e96a43d80\_skbuild\win-amd64-3.6\cmake-buildPlease see CMake's output for more information.----------------------------------------ERROR: Failed building wheel for opencv-python-headless
Failed to build opencv-python-headless
ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects

关注最后几句话:
在这里插入图片描述

  ERROR: Failed building wheel for opencv-python-headless
Failed to build opencv-python-headless
ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects

这个错误提示通常是在尝试安装Python包时出现的。它表明安装过程中遇到了问题,导致无法构建opencv-python-headless这个包的“wheel”(轮子),而轮子是预先编译的二进制包,能够加快安装速度。

既然说没有安装opencv-python-headless,我们就自己手动安装opencv-python-headless
方案一:直接在线安装pip install opencv-python-headless
我直接在线安装的话还是报同样的错

方案二:离线安装
去官网下载对应版本的whl文件
https://pypi.org/project/opencv-python-headless/4.1.1.26/#files
注意我们需要下载正确的版本,我们先确认现在需要哪个版本的opencv-python-headless
我们回到前面的安装信息:
在这里插入图片描述

  • 确定了现在我们需要安装的版本是>=4.1.1的,不要下载低于4.1.1的版本;
  • 其次,确定一下所用的python版本,我的是3.6
  • 最后,我们要确定一下电脑是32位还是64位的

在这里插入图片描述

下载好之后cd到对应的文件夹下,pip install opencv_python_headless-4.1.1.26-cp36-cp36m-win_amd64.whl

在这里插入图片描述
安装结束后再安装原来没有安装上的albumentations:pip install albumentations
就可以成功安装了
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/833562.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

如何利用CAM350检查Gerber文件

利用CAM350检查Gerber文件 1、 打开CAM350软件。双击桌面上的CAM350图标以启动软件。 2、选择文件输入选项。在文件菜单中选择“输入”然后选择“自动输入”&#xff0c;因为Gerber文件通常是由EDA软件自动导出的&#xff0c;这样可以快速识别。 3、选择Gerber文件夹。在弹出的…

责任链模式和观察者模式

1、责任链模式 1.1 概述 在现实生活中&#xff0c;常常会出现这样的事例&#xff1a;一个请求有多个对象可以处理&#xff0c;但每个对象的处理条件或权限不同。例如&#xff0c;公司员工请假&#xff0c;可批假的领导有部门负责人、副总经理、总经理等&#xff0c;但每个领导…

C语言——每日一题(轮转数组)

一.前言 前不久学习了时间复杂度的概念&#xff0c;便在力扣上刷了一道需要参考时间复杂度的题——轮转数组 https://leetcode.cn/problems/rotate-array/submissions这道题不能使用暴力算法&#xff0c;因为这道题对时间复杂度的要求不能为O&#xff08;N^2&#xff09;。因…

java博客目录

博客目录 基础知识 集合列表 List ArrayList&#xff1a; LinkedList&#xff1a; Set Map TreeMap 设计模式 单例模式&#xff1a; 工厂方法

如何根据索引删除数组中的元素,并保证删除的正确性

使用 splice() 方法来删除这些索引处的数据 var array [1, 2, 3, 4, 5]; var indexesToDelete [1, 3]; // 需要删除的索引// 将需要删除的索引按照从大到小的顺序排序&#xff0c;以避免删除元素后索引发生变化 indexesToDelete.sort((a, b) > b - a);// 遍历需要删除的索…

Tansformer原理解读

什么是注意力机制 生物学中的注意力机制是指人类或动物能够选择性地将感知和认知资源集中到某些信息或任务上的能力。这种能力允许我们在众多信息的背景中过滤出重要的信息&#xff0c;并将这些信息传递给相应的神经元进行处理。 本质&#xff1a;能从中抓住重点&#xff0c;…

上海市计算机学会竞赛平台2023年7月月赛丙组先行后列

题目描述 从 11 开始的 &#x1d45b;&#x1d45a;nm 个整数按照先行后列的规律排列如下&#xff1a; 第一列第二列第 &#x1d45a;m 列第一行1122……&#x1d45a;m第二行&#x1d45a;1m1&#x1d45a;2m2……2&#x1d45a;2m第三行2&#x1d45a;12m12&#x1d45a;22…

一个好用的短链接都需要具备哪些功能?

大家好&#xff0c;今天我们将会来聊聊一款优秀的短链接&#xff0c;都需要具备的功能&#xff0c;看看是不是你想要的呢&#xff1f; 1. 能够支持自定义域名 现在越来越多的用户都不会选择公用域名了&#xff0c;因为那样风险太大&#xff0c;而会选择用一个他们自己的专用域…

自动控制原理MATLAB:系统分析

控制系统时域分析 &#xff08;1&#xff09;稳定性分析 稳定是控制系统的重要性能&#xff0c;也是系统设计过程中的首要问题。线性系统稳定的充分必要条件是&#xff1a;闭环系统特征方程的所有根均具有负实部。在MATLAB中可以调用roots命令求取特征根&#xff0c;进而判别…

C#实战—代码实现收发文件智能化

在信息化的今天&#xff0c;收发电子文档几乎是每个朋友都要经历的事情。比如班级学委和班长需要收发作业&#xff0c;企业管理者需要收发工作文件。但是&#xff01;&#xff01;&#xff01; 每到要交结果时&#xff0c;往往会发现总会有一些人没有即使交上&#xff0c;50个…

8W 1.5KVDC 隔离宽电压输入 DC/DC 电源模块——TP08DA 系列

TP08DA系列电源模块额定输出功率为8W&#xff0c;外形尺寸为31.80*20.30*10.00&#xff0c;应用于2&#xff1a;1&#xff0c;4:1电压输入范围 9-18V,18-36V,36-72V9V-36V和18V-72VDC的输入电压环境&#xff0c;输出电压精度可达1%&#xff0c;具有输出短路保护等功能&#xff…

“IP协议全解析:为何它是互联网通信的基石?”(包含开源免费的API接口)

IP地址简介 IP地址&#xff08;Internet Protocol Address&#xff09;是指互联网协议地址&#xff0c;又译为网际协议地址。 IP地址是IP协议提供的一种统一的地址格式&#xff0c;它为互联网上的每一个网络和每一台主机分配一个逻辑地址&#xff0c;以此来屏蔽物理地址的差异…

图卷积神经网络GCN

计算图 通过消息传递的框架构建一个局部邻域的计算图 每个节点分别构建自己的计算图 理论上任意深度&#xff0c;根据六度空间理论&#xff0c;层数一般不会超过六层 基本过程 数学形式 矩阵表示 代码表示 图计算改进 能够听见自己内心的声音 最终形式 如何训…

Android调用C++函数

1.定义JAVA类test package com.example.mylib;public class test {int id;//IDchar lab;//标签long id_card;//身份String name;//名称public test(){} }2.声明原生JNI函数 public native test objFromJNI(test obj); 3.实现objFromJNI原生函数 struct myStruct{int id;uin…

windows端口复用

1. 概述 使用 HTTP.sys 中的 Net.tcp Port Sharing 服务&#xff0c;配合 WinRM 实现端口复用。 优点&#xff1a; HTTP.sys 为 windows 原生机制&#xff0c; WinRM 为 windows 自带功能&#xff0c;动作较小&#xff0c;不易触发主 动防御。 需要管理员权限。 2. 原理 (…

每日一题 第九十六期 单调队列

题 有n个生物&#xff0c;第i个生物会在第i到第ai(i≤ai≤n)天出现&#xff0c;它的攻击力为bi。其中对于所有i(1≤i<n)&#xff0c;满足ai≤ai1请输出每天出现的生物的攻击力的最大值。 输入格式 第一行一个整数n 。 接下来n行&#xff0c;每行两个整数ai,bi 输出格式 一…

鞋店小程序商城的作用是什么

鞋与服装一样其购买/复购属性都非常足&#xff0c;每个人生活所需无疑促进了品牌多样化、工厂/店铺商家/个人都有很多&#xff0c;其目的都是为了品牌宣传和将更多货卖给下游/客户。 对消费者来说&#xff0c;买鞋渠道线上线下选择比较多&#xff0c;普遍会以品牌为主&#xf…

✬ ✬ ✬ 宁波推进ISO14000认证:共创美好生态家园✬ ✬ ✬

&#x1f308;&#x1f308;宁波推进ISO14000认证&#xff0c;&#x1f349;共创美好生态家园&#x1f929; &#x1f603;哇&#xff01;宁波这个大都市&#x1f353;真的在努力推进&#x1f688;ISO14000认证啊&#xff01;&#x1f6b5;‍♀️作为一个环保爱好者&#xff0…

文本批量操作实例:如何实现文本批量拆分?实用方法与技巧分享

在文本处理和数据分析的过程中&#xff0c;我们经常会遇到需要批量拆分大量文本数据的情况。文本批量拆分能够大大提高工作效率&#xff0c;减少重复劳动。下面&#xff0c;我们将通过一个实例来介绍如何实现文本批量拆分&#xff0c;并分享一些实用方法与技巧。 一、实例背景 …

U盘管控软件,禁止员工用U盘拷贝机密数据,防止信息通过U盘泄露

随着信息技术的不断发展&#xff0c;U盘等便携式存储设备已成为我们日常工作中不可或缺的工具。然而&#xff0c;随着U盘的普及&#xff0c;企业面临的信息泄露风险也在不断增加。为了确保企业的信息安全&#xff0c;许多企业开始采用U盘管控软件&#xff0c;禁止员工使用U盘拷…