Skip to content

Unable to build pandas from source on Windows #59417

Closed
@clin1234

Description

@clin1234
pip install pandas
Collecting pandas
  Using cached pandas-2.2.2.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
  ╰─> [32 lines of output]
      + meson setup C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088 C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088\.mesonpy-ta2thafr\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088\.mesonpy-ta2thafr\build\meson-python-native-file.ini
      The Meson build system
      Version: 1.2.1
      Source dir: C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088
      Build dir: C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088\.mesonpy-ta2thafr\build
      Build type: native build
      Project name: pandas
      Project version: 2.2.2
      Activating VS 17.11.0 Preview 5.0
      C compiler for the host machine: sccache cl (msvc 19.41.34117 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34117 for x64")
      C linker for the host machine: link link 14.41.34117.0
      C++ compiler for the host machine: sccache cl (msvc 19.41.34117 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34117 for x64")
      C++ linker for the host machine: link link 14.41.34117.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:\Users\ךינשגכהד\scoop\apps\python-alpha\current\python.exe)

      ..\..\pandas\meson.build:1:15: ERROR: Command `C:\Users\ךינשגכהד\scoop\apps\python-alpha\current\python.exe -c "
      import os
      import numpy as np
      try:
          # Check if include directory is inside the pandas dir
          # e.g. a venv created inside the pandas dir
          # If so, convert it to a relative path
          incdir = os.path.relpath(np.get_include())
      except Exception:
          incdir = np.get_include()
      print(incdir)
           "` failed with status 3221225477.

      A full log can be found at C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-12u0d8nj\pandas_dbfe103136b3466e8b5b75d423059088\.mesonpy-ta2thafr\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.
python -c "import numpy;print(numpy.version.version)"
2.1.0.dev0+git20240728.fdcbd0e

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platformsClosing CandidateMay be closeable, needs more eyeballsWindowsWindows OS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions