python安裝lab模塊時報錯
Building wheel for lap (setup.py) error
我使用了能搜到的全部解決No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils 的方法都還是報錯,該怎麼解決??
Building wheel for lap (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [119 lines of output] Partial import of lap during the build process. Generating cython files running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "lap._lapjv" sources building data_files sources build_src: building npy-pkg config files running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\lap copying lap\lapmod.py -> build\lib.win-amd64-3.7\lap copying lap\__init__.py -> build\lib.win-amd64-3.7\lap running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1013] : testing flags (/O2) creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils creating C:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks CCompilerOpt.cc_test_flags[1013] : testing flags (/WX) CCompilerOpt.__init__[1161] : feature 'AVX512_KNL' is disabled, MSVC compiler doesn't support it CCompilerOpt.__init__[1161] : feature 'AVX512_KNM' is disabled, MSVC compiler doesn't support it CCompilerOpt.__init__[1701] : check requested baseline CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:SSE) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[706] : Flags in command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.obj /arch:SSE) aren't supported by the compiler, output -> cl: 命令行 warning D9002 :忽略未知選項“/arch:SSE” test_flags.c CCompilerOpt.cc_test_flags[1017] : testing failed CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:SSE2) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[706] : Flags in command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.obj /arch:SSE2) aren't supported by the compiler, output -> cl: 命令行 warning D9002 :忽略未知選項“/arch:SSE2” test_flags.c CCompilerOpt.cc_test_flags[1017] : testing failed CCompilerOpt.feature_test[1468] : testing feature 'SSE2' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse2.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse2.obj /WX) failed with exit status 2 output -> cpu_sse2.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.feature_test[1468] : testing feature 'SSE' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse.obj /WX) failed with exit status 2 output -> cpu_sse.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.__init__[1710] : check requested dispatch-able features CCompilerOpt.feature_test[1468] : testing feature 'SSE3' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse3.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse3.obj /WX) failed with exit status 2 output -> cpu_sse3.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX) CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX2) CCompilerOpt.feature_test[1468] : testing feature 'FMA3' with flags (/arch:AVX2) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_fma3.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_fma3.obj /arch:AVX2 /WX) failed with exit status 2 output -> cpu_fma3.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX512) CCompilerOpt.feature_test[1468] : testing feature 'AVX512_CLX' with flags (/arch:AVX512) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_avx512_clx.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_avx512_clx.obj /arch:AVX512 /WX) failed with exit status 2 output -> cpu_avx512_clx.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.feature_test[1468] : testing feature 'SSE41' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse41.c /FoC:\Users\ASUS\AppData\Local\Temp\tmprn7qzix1\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse41.obj /WX) failed with exit status 2 output -> cpu_sse41.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.__init__[1726] : initialize targets groups CCompilerOpt.__init__[1728] : parse target group simd_test CCompilerOpt._parse_target_tokens[1941] : skip targets (FMA4 AVX512F VSX2 AVX512_SKX SSE42 VSX3 (FMA3 AVX2) VSX ASIMD XOP SSE2 NEON) not part of baseline or dispatch-able features CCompilerOpt.generate_dispatch_header[2272] : generate CPU dispatch header: (build\src.win-amd64-3.7\numpy\distutils\include\npy_cpu_dispatch_config.h) CCompilerOpt.generate_dispatch_header[2283] : dispatch header dir build\src.win-amd64-3.7\numpy\distutils\include does not exist, creating it No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler Missing compiler_cxx fix for MSVCCompiler customize MSVCCompiler using build_ext building 'lap._lapjv' extension compiling C sources creating build\temp.win-amd64-3.7\Release\lap C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ilap -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ibuild\src.win-amd64-3.7\numpy\distutils\include -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /EHsc /Tplap\_lapjv.cpp /Fobuild\temp.win-amd64-3.7\Release\lap\_lapjv.obj /Zm1000 _lapjv.cpp e:\myanaconda\include\pyconfig.h(59): fatal error C1083: 無法打開包括文件: “io.h”: No such file or directory error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ilap -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ibuild\src.win-amd64-3.7\numpy\distutils\include -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /EHsc /Tplap\_lapjv.cpp /Fobuild\temp.win-amd64-3.7\Release\lap\_lapjv.obj /Zm1000" failed with exit status 2 ########### EXT COMPILER OPTIMIZATION ########### Platform : Architecture: x64 Compiler : msvc CPU baseline : Requested : 'min' Enabled : none Flags : none Extra checks: none CPU dispatch : Requested : 'max -xop -fma4' Enabled : none Generated : none CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\ASUS\AppData\Local\Temp\pip-install-z926p8jr\lap_6198fc089fb5437688b0134c4bfafa0f\build\temp.win-amd64-3.7\Release\ccompiler_opt_cache_ext.py [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lap Running setup.py clean for lapFailed to build lapInstalling collected packages: lap, flatbuffers, zipp, xmltodict, werkzeug, tensorboard-data-server, setuptools, rsa, protobuf, oauthlib, grpcio, charset-normalizer, cachetools, absl-py, requests, onnxruntime, onnx, importlib-metadata, google-auth, requests-oauthlib, onnxoptimizer, motmetrics, markdown, onnx-simplifier, google-auth-oauthlib, filterpy, tensorboard Running setup.py install for lap ... error error: subprocess-exited-with-error × Running setup.py install for lap did not run successfully. │ exit code: 1 ╰─> [107 lines of output] Partial import of lap during the build process. Generating cython files running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "lap._lapjv" sources building data_files sources build_src: building npy-pkg config files running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\lap copying lap\lapmod.py -> build\lib.win-amd64-3.7\lap copying lap\__init__.py -> build\lib.win-amd64-3.7\lap running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1013] : testing flags (/O2) creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils creating C:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks CCompilerOpt.cc_test_flags[1013] : testing flags (/WX) CCompilerOpt.__init__[1161] : feature 'AVX512_KNL' is disabled, MSVC compiler doesn't support it CCompilerOpt.__init__[1161] : feature 'AVX512_KNM' is disabled, MSVC compiler doesn't support it CCompilerOpt.__init__[1701] : check requested baseline CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:SSE) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[706] : Flags in command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.obj /arch:SSE) aren't supported by the compiler, output -> cl: 命令行 warning D9002 :忽略未知選項“/arch:SSE” test_flags.c CCompilerOpt.cc_test_flags[1017] : testing failed CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:SSE2) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[706] : Flags in command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\test_flags.obj /arch:SSE2) aren't supported by the compiler, output -> cl: 命令行 warning D9002 :忽略未知選項“/arch:SSE2” test_flags.c CCompilerOpt.cc_test_flags[1017] : testing failed CCompilerOpt.feature_test[1468] : testing feature 'SSE2' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse2.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse2.obj /WX) failed with exit status 2 output -> cpu_sse2.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.feature_test[1468] : testing feature 'SSE' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse.obj /WX) failed with exit status 2 output -> cpu_sse.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.__init__[1710] : check requested dispatch-able features CCompilerOpt.feature_test[1468] : testing feature 'SSE42' with flags () CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse42.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_sse42.obj /WX) failed with exit status 2 output -> cpu_sse42.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX) CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX2) CCompilerOpt.cc_test_flags[1013] : testing flags (/arch:AVX512) CCompilerOpt.feature_test[1468] : testing feature 'AVX512_CNL' with flags (/arch:AVX512) CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[718] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /Tce:\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_avx512_cnl.c /FoC:\Users\ASUS\AppData\Local\Temp\tmpujvt6s7p\myanaconda\lib\site-packages\numpy\distutils\checks\cpu_avx512_cnl.obj /arch:AVX512 /WX) failed with exit status 2 output -> cpu_avx512_cnl.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmmintrin.h(75): fatal error C1083: 無法打開包括文件: “malloc.h”: No such file or directory CCompilerOpt.feature_test[1482] : testing failed CCompilerOpt.__init__[1726] : initialize targets groups CCompilerOpt.__init__[1728] : parse target group simd_test CCompilerOpt._parse_target_tokens[1941] : skip targets (SSE42 FMA4 AVX512F SSE2 VSX3 NEON ASIMD (AVX2 FMA3) AVX512_SKX VSX XOP VSX2) not part of baseline or dispatch-able features CCompilerOpt.generate_dispatch_header[2272] : generate CPU dispatch header: (build\src.win-amd64-3.7\numpy\distutils\include\npy_cpu_dispatch_config.h) CCompilerOpt.generate_dispatch_header[2283] : dispatch header dir build\src.win-amd64-3.7\numpy\distutils\include does not exist, creating it No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler Missing compiler_cxx fix for MSVCCompiler customize MSVCCompiler using build_ext building 'lap._lapjv' extension compiling C sources creating build\temp.win-amd64-3.7\Release\lap C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ilap -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ibuild\src.win-amd64-3.7\numpy\distutils\include -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /EHsc /Tplap\_lapjv.cpp /Fobuild\temp.win-amd64-3.7\Release\lap\_lapjv.obj /Zm1000 _lapjv.cpp e:\myanaconda\include\pyconfig.h(59): fatal error C1083: 無法打開包括文件: “io.h”: No such file or directory error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ilap -Ie:\myanaconda\lib\site-packages\numpy\core\include -Ibuild\src.win-amd64-3.7\numpy\distutils\include -Ie:\myanaconda\include -Ie:\myanaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /EHsc /Tplap\_lapjv.cpp /Fobuild\temp.win-amd64-3.7\Release\lap\_lapjv.obj /Zm1000" failed with exit status 2 ########### EXT COMPILER OPTIMIZATION ########### Platform : Architecture: x64 Compiler : msvc CPU baseline : Requested : 'min' Enabled : none Flags : none Extra checks: none CPU dispatch : Requested : 'max -xop -fma4' Enabled : none Generated : none CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\ASUS\AppData\Local\Temp\pip-install-z926p8jr\lap_6198fc089fb5437688b0134c4bfafa0f\build\temp.win-amd64-3.7\Release\ccompiler_opt_cache_ext.py [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.error: legacy-install-failure× Encountered error while trying to install package.╰─> lapnote: This is an issue with the package mentioned above, not pip.hint: See above for output from the failure.
我的解答思路和嘗試過的方法
我想要達到的結果