安装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就可以了。

相关推荐
冷月半明1 天前
《Pandas 性能优化:向量化操作 vs. Swifter 加速,谁才是大数据处理的救星?》
python·数据分析·pandas
慕丹1 天前
虫洞数观系列三 | 数据分析全链路实践:Pandas清洗统计 + Navicat可视化呈现
python·mysql·数据挖掘·数据分析·pandas
lzq6032 天前
【Python实战】用Pandas轻松实现Excel数据清洗与可视化
python·excel·pandas
啊阿狸不会拉杆4 天前
第十五章:Python的Pandas库详解及常见用法
开发语言·python·数据分析·pandas
夜松云4 天前
Python数据可视化与数据处理全解析:Matplotlib图形控制与Pandas高效数据分析实战
python·算法·信息可视化·pandas·matplotlib
蹦蹦跳跳真可爱5894 天前
Python----数据分析(足球运动员数据分析)
python·数据挖掘·数据分析·pandas·matplotlib
liuweidong08025 天前
【Pandas】pandas Series to_xarray
linux·运维·pandas
王有品6 天前
python之size,count的区别
python·机器学习·pandas
慕丹6 天前
知识周汇 | 用 matplotlib 轻松绘制折线图、散点图、柱状图、直方图
python·pandas·matplotlib
杜子腾dd6 天前
21.Excel自动化:如何使用 xlwings 进行编程
运维·python·自动化·excel·numpy·pandas