python32python312_x32pandaspython312_x32pandas__0">最近由于要使用只有python32位才能使用的库,于是创建了一个python3.12 x32位环境的项目,在布置环境的过程中发现这pandas安装不了,网上找了一大圈也没看到过几个像样的解决问题的答案,大家如果在python3.12 x32位环境下安装pandas失败跟我一样的报错可以试下下面的方法 如果安装报错信息如下:
Collecting pandas
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9c/d6/9f8431bacc2e19dca897724cd097b1bb224a6ad5433784a44b587c7c13af/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
╰─> [23 lines of output]
+ meson setup C:\Users\Wilbu\AppData\Local\Temp\pip-install-yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d C:\Users\Wilbu\AppData\Local\Temp\pip-install-
yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d.mesonpy-_r07j6lx\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Wilbu\AppData\Local\Temp\pip-install-yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d.mesonpy-_r07j6lx\build\meson-python-native-file.ini
The Meson build system
Version: 1.2.1
Source dir: C:\Users\Wilbu\AppData\Local\Temp\pip-install-yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d
Build dir: C:\Users\Wilbu\AppData\Local\Temp\pip-install-yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d.mesonpy-_r07j6lx\build
Build type: native build
Project name: pandas
Project version: 2.2.3
Activating VS 17.12.0
C compiler for the host machine: cl (msvc 19.42.34433 “用于 x64 的 Microsoft ® C/C++ 优化编译器 19.42.34433 版”)
C linker for the host machine: link link 14.42.34433.0
C++ compiler for the host machine: cl (msvc 19.42.34433 “用于 x64 的 Microsoft ® C/C++ 优化编译器 19.42.34433 版”)
C++ linker for the host machine: link link 14.42.34433.0
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (E:\WOWdamo.venv\Scripts\python.exe)
Need python for x86_64, but found x86
Run-time dependency python found: NO (tried sysconfig)
..\..\pandas\_libs\tslibs\meson.build:32:7: ERROR: Python dependency not foundA full log can be found at C:\Users\Wilbu\AppData\Local\Temp\pip-install-yi4qara2\pandas_9cffe7c5e9774ce98f0deccf62d43e3d\.mesonpy-_r07j6lx\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.