安装pandas报错

报错信息:

python 复制代码
C:\Users\Jordan>pip install pandas
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting pandas
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3a/6e/6c9c197ec2da861ea8c9c6848f0f887b7563f16e607bc6a35506af677f30/pandas-2.1.2.tar.gz (4.3 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\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.ini
      The Meson build system
      Version: 1.2.1
      Source dir: C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb
      Build dir: C:\Users\Jordan\AppData\Local\Temp\pip-install-jaye7cfj\pandas_2150e5be7d1b4333a4c580a8e6ed1ceb\.mesonpy-93xc7z38\build
      Build type: native build
      Project name: pandas
      Project version: 2.1.2

      ..\..\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\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就可以了。

相关推荐
Hello.Reader2 天前
PyFlink 向量化 UDF(Vectorized UDF)Arrow 批传输原理、pandas 标量/聚合函数、配置与内存陷阱、五种写法一网打尽
python·flink·pandas
Hello.Reader2 天前
PyFlink Table API Data Types DataType 是什么、UDF 类型声明怎么写、Python / Pandas 类型映射一文搞懂
python·php·pandas
Hello.Reader2 天前
PyFlink Table API 用户自定义函数(UDF)通用 UDF vs Pandas UDF、打包部署、open 预加载资源、读取作业参数、单元测试
log4j·pandas
海棠AI实验室3 天前
第十六章:小项目 2 CSV → 清洗 → 统计 → 图表 → 报告输出
pandas
逻极3 天前
数据分析项目:Pandas + SQLAlchemy,从数据库到DataFrame的丝滑实战
python·mysql·数据分析·pandas·sqlalchemy
海棠AI实验室3 天前
第十七章 调试与排错:读懂 Traceback 的方法论
python·pandas·调试
kong79069283 天前
Pandas简介
信息可视化·数据分析·pandas
爱喝可乐的老王3 天前
数据分析实践--数据解析购房关键
信息可视化·数据分析·pandas·matplotlib
叫我:松哥3 天前
基于 Flask 的音乐推荐与可视化分析系统,包含用户、创作者、管理员三种角色,集成 ECharts 进行数据可视化,采用混合推荐算法
开发语言·python·信息可视化·flask·echarts·pandas·推荐算法
龙腾AI白云3 天前
10分钟了解向量数据库(3)
pandas·scipy