|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
运行程序报错,但是已经安装pandas库了
No module named 'pandas'
pip install pandas 输入后:
Collecting pandas
Using cached pandas-2.2.3.tar.gz (4.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
+ meson setup C:\Users\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204 C:\Users\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204\.mesonpy-2ufjm18d\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204\.mesonpy-2ufjm18d\build\meson-python-native-file.ini
The Meson build system
Version: 1.2.1
Source dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204
Build dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204\.mesonpy-2ufjm18d\build
Build type: native build
Project name: pandas
Project version: 2.2.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\Administrator\AppData\Local\Temp\pip-install-0r0b7_ke\pandas_43e782755d6e4b2eb0d69de27157b204\.mesonpy-2ufjm18d\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.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
是没安装成功吗? |
|