Skip to content

Problem installing with Pip: "Compiler cl cannot compile programs" #386

@David-OConnor

Description

@David-OConnor

Hi! I'm looking forward to downloading TDC data sets! It seems the TDC website is indicating this Python library is the way to download them. When I attempt to install, I get this error when running pip install PyTDC:

  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      + C:\Users\the_a\AppData\Local\Programs\Python\Python313\python.exe C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb\vendored-meson\meson\meson.py setup C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb\.mesonpy-ru_cv0yv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb\.mesonpy-ru_cv0yv\meson-python-native-file.ini
      The Meson build system
      Version: 1.2.99
      Source dir: C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb
      Build dir: C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb\.mesonpy-ru_cv0yv
      Build type: native build
      Project name: NumPy
      Project version: 1.26.4

      ..\meson.build:1:0: ERROR: Compiler cl cannot compile programs.

      A full log can be found at C:\Users\the_a\AppData\Local\Temp\pip-install-ssnohb3o\numpy_0ee645b322e7441fab88c247265fa5cb\.mesonpy-ru_cv0yv\meson-logs\meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 25.1.1 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade 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.

Do you know how I would solve this:? I searched for issues on this Github for the error line, but I did not see anything relevant. Thank you! I am using Python 3.13.

I notice on PyPi, there is only a source distribution, so I'm not sure what versions of Python and operating systems this nominally support. Given the error indicates a "Compiler cl" is running, I suspect this could be resolved by publishing wheels. Let me know what you think, or if this is not correct. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions