エラーは以下のように表示されます
Building wheels for collected packages: twisted-iocpsupport
Building wheel for twisted-iocpsupport (pyproject.toml): started
Building wheel for twisted-iocpsupport (pyproject.toml): finished with status 'error'
Failed to build twisted-iocpsupport
error: subprocess-exited-with-error
Building wheel for twisted-iocpsupport (pyproject.toml) did not run successfully.
exit code: 1
[5 lines of output]
running bdist_wheel
running build
running build_ext
building 'twisted_iocpsupport.iocpsupport' extension
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]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for twisted-iocpsupport
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects
鍵となるのは次の文です。
「twisted_iocpsupport.iocpsupport」拡張機能の構築
エラー: Microsoft Visual C++ 14.0 以降が必要です。「Microsoft C++ Build Tools」で入手します: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Microsoft Visual C++14.0 以降がインストールされている必要があることに注意してください
(当初、エラーの原因は、Twisted-iocpsupport のホイールの構築に失敗したことだと考えられていました...)
解決
ダウンロード URL: https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
インストール内容の
選択 インストール後、Scrapy を再度インストールすると成功です。!!