【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,一经查实,立即删除!

相关文章

责任链模式和观察者模式

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

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

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

Tansformer原理解读

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

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

大家好&#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…

图卷积神经网络GCN

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

windows端口复用

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

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

鞋与服装一样其购买/复购属性都非常足&#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盘拷…

【YOLOv8改进[Backbone]】使用SCINet改进YOLOv8在黑暗环境的目标检测效果

目录 一 SCINet 1 本文方法 ① 权重共享的照明学习 ② 自校准模块 ③ 无监督训练损失 二 使用SCINet助力YOLOv8在黑暗环境的目标检测效果 1 整体修改 2 配置文件 3 训练 其他 一 SCINet 官方论文地址&#xff1a;https://arxiv.org/pdf/2204.10137 官方代码地址&…

STM32平衡车-MPU6050的DMP库移植

本文目录 一、硬件接线二、需要移植的三个文件夹1. DMP文件夹目录2. IIC文件夹目录3. MPU6050文件夹目录 三、文件内容IO12C.cIO12C.hMPU6050.cMPU6050.hmain.c 四、附录1.更改IIC引脚 一、硬件接线 SCL-- PA11 SDA-- PA12 VCC-- 3.3v GND-- GND 二、需要移植的三个文件夹 1.…

winscp断点续传

背景 超大文件上传&#xff0c; scp可能因为网络或其他原因中断&#xff0c;并且已上传完的文件无法同步。如何断点续传呢&#xff1f;使用winscp软件 winscp安装 百度搜索&#xff0c;自行安装 开启断点续传功能 https://jingyan.baidu.com/article/fdffd1f8395529b2e98ca…

图纸管理的高效策略与最佳实践

图纸管理的高效策略与最佳实践 在工程设计、产品研发和建筑行业中&#xff0c;图纸管理是一项至关重要的任务。随着项目规模的扩大和复杂性的增加&#xff0c;如何高效、有序地管理图纸已成为企业和团队关注的焦点。本文将为您介绍图纸管理的高效策略与最佳实践&#xff0c;帮助…

一文搞懂深度学习:最全神经网络介绍

本文是深度学习系列文章的第二篇&#xff0c;我们将深入探讨各种类型的人工神经网络&#xff0c;探索它们独特的特性和应用。 01 神经网络介绍 人工神经网络已经彻底改变了机器学习领域&#xff0c;并成为人工智能的基石&#xff0c;它的设计目的是模仿人类大脑的结构和功能&a…

ubuntu_Docker安装配置

什么是docker? Docker 是一个开源的应用容器引擎&#xff0c;让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中&#xff0c;然后发布到任何流行的 Linux或Windows操作系统的机器上&#xff0c;也可以实现虚拟化。容器是完全使用沙箱机制&#xff0c;相互之间不会有…

『ZJUBCA Collaboration』WTF Academy 赞助支持

非常荣幸宣布&#xff0c;浙江大学区块链协会收到WTF Academy的赞助与支持&#xff0c;未来将共同开展更多深度合作。 WTF Academy是开发者的Web3开源大学&#xff0c;旨在通过开源教育让100,000名开发者进入到Web3。截止目前&#xff0c;WTF开源教程在GitHub收获超15,000 ⭐&a…