Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mi-Peng opened this issue Dec 24, 2024 · 0 comments
Open

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

Mi-Peng opened this issue Dec 24, 2024 · 0 comments

Comments

@Mi-Peng
Copy link

Mi-Peng commented Dec 24, 2024

I was trying to install pennylane package on my PC, and I got the following error:

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

My command :
pip install pennylane --upgrade

And I got:
Collecting pennylane
Using cached PennyLane-0.39.0-py3-none-any.whl.metadata (9.2 kB)
Collecting numpy<2.1 (from pennylane)
Using cached numpy-2.0.2.tar.gz (18.9 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
╰─> [14 lines of output]
+ C:\Users\SusiwrrTT.conda\envs\qml\python.exe C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665\vendored-meson\meson\meson.py setup C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665 C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665.mesonpy-_lt0rfmi -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665.mesonpy-_lt0rfmi\meson-python-native-file.ini
The system cannot find the file specified.
The Meson build system
Version: 1.4.99
Source dir: C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665
Build dir: C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665.mesonpy-_lt0rfmi
Build type: native build
Project name: NumPy
Project version: 2.0.2
Activating VS 17.12.3

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

  A full log can be found at C:\Users\SusiwrrTT\AppData\Local\Temp\pip-install-fkbqs8br\numpy_e7d8e32595d2498b941f422756720665\.mesonpy-_lt0rfmi\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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant