当前位置:首页 > 编程笔记 > 正文
已解决

安装pandas报错

来自网友在路上 179879提问 提问时间:2023-10-27 22:23:29阅读次数: 79

最佳答案 问答题库798位专家为你答疑解惑

报错信息:

C:\Users\Jordan>pip install pandas
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting pandasUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/3a/6e/6c9c197ec2da861ea8c9c6848f0f887b7563f16e607bc6a35506af677f30/pandas-2.1.2.tar.gz (4.3 MB)Installing build dependencies ... doneGetting requirements to build wheel ... doneInstalling backend dependencies ... donePreparing metadata (pyproject.toml) ... errorerror: subprocess-exited-with-error× Preparing metadata (pyproject.toml) did not run successfully.│ exit code: 1╰─> [12 lines of output]+ meson setup C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb\.mesonpy-93xc7z38\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb\.mesonpy-93xc7z38\build\meson-python-native-file.iniThe Meson build systemVersion: 1.2.1Source dir: C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1cebBuild dir: C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb\.mesonpy-93xc7z38\buildBuild type: native buildProject name: pandasProject version: 2.1.2..\..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exeA full log can be found at C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb\.mesonpy-93xc7z38\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.

参考文章:
https://www.coder.work/article/7916927

谁能想到的python版本的问题!!!
将3.10版本卸载了,安装了python3.7版本的32位的python就可以了。

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"安装pandas报错":http://eshow365.cn/6-26357-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!