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

相关推荐
qq_381454993 天前
Python Pandas完全指南:从核心数据结构到实战操作
pandas
TUTO_TUTO4 天前
【python-词汇指标提取工具开发】自学笔记(1)-后端程序
人工智能·python·pandas·visual studio code
葱明撅腚4 天前
shapely空间数据分析
python·pandas·gis·shapely
忘忧记5 天前
pandas基础三
pandas
叫我:松哥7 天前
基于scrapy的网易云音乐数据采集与分析设计实现
python·信息可视化·数据分析·beautifulsoup·numpy·pandas
测试摆渡媛7 天前
Excel模板填充工具(工具&脚本分享)
python·数据挖掘·pandas
_Soy_Milk7 天前
【算法工程师】—— Python 数据分析
python·数据分析·numpy·pandas·matplotlib
Data-Miner8 天前
类似Pandas AI的几个数据分析处理智能体介绍
人工智能·数据分析·pandas
智航GIS10 天前
11.18 自定义Pandas扩展开发指南:打造你的专属数据分析武器库
python·数据分析·pandas
人工干智能11 天前
你知道 Pandas 中 `pd.get_dummies()` 会生成哪些独热的新列么?
大数据·pandas