error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
+ meson setup C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500 C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500\.mesonpy-2zin67os\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500\.mesonpy-2zin67os\build\meson-python-native-file.ini
The Meson build system
Version: 1.2.1
Source dir: C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500
Build dir: C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500\.mesonpy-2zin67os\build
Build type: native build
Project name: pandas
Project version: 2.1.3
..\..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
A full log can be found at C:\Users\Zavier\AppData\Local\Temp\pip-install-hqh2hfeh\pandas_a0ef6d4f6eb7451da64a62d8254d3500\.mesonpy-2zin67os\build\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
我该如何解决这个问题?
同样的问题在这个帖子中讨论并解决了。也许这会有所帮助 - stackoverflow 线程