ISSUE:
- error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output] - Failed to build vec-noise
- C:\ProgramData\miniconda3\include\pyconfig.h(59): fatal error C1083: 無法開啟包含檔案: ‘io.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe’ failed with exit code 2
會有這個問題主要是電腦沒有這個套件,而有些python package會用到這類東西,才會產生錯誤。
Solution:
安裝VS Build Tools
-
進入官網,下載Build Tools
-
開始安裝後,會跳出這個介面,右邊的紅框要記得選擇,安裝後就可以解決這個問題了