Skip to content

BUILD: Unable to install pandas on 32bit python due to mesons build error which requires x86_64. will not allow x86 (32 bit version of python 3.12) #58134

Closed
@BethDal

Description

@BethDal

Installation check

Platform

Windows-10-10.0.19045-SP0

Installation Method

pip install

pandas Version

2.2.1

Python Version

3.12

Installation Logs

PS C:\Users\lineop\Documents\Python\1.BERTsuite_Nov2023\VcmMET3> py -m pip install pandas
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas
Using cached pandas-2.2.1.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\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6 C:\Users\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6.mesonpy-1
alb6x3l\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6.mesonpy-1alb6x3l\build\meson-python-n
ative-file.ini
The Meson build system
Version: 1.2.1
Source dir: C:\Users\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6
Build dir: C:\Users\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6.mesonpy-1alb6x3l\build
Build type: native build
Project name: pandas
Project version: 2.2.1
Activating VS 17.9.4
C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
C linker for the host machine: link link 14.39.33523.0
C++ compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
C++ linker for the host machine: link link 14.39.33523.0
Cython compiler for the host machine: cython (cython 3.0.5)
Host machine cpu family: x86_64
Host machine cpu: x86_64

Program python found: YES (C:\Program Files (x86)\Python312-32\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 found
 
  A full log can be found at C:\Users\lineop.LI\AppData\Local\Temp\pip-install-o0ah6jbr\pandas_8176c5fd1a53489cadec284792bf22d6\.mesonpy-1alb6x3l\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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platforms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions