I’m trying to install numpy
pip install numpy
Collecting numpy
Using cached numpy-1.26.4.tar.gz (15.8 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
╰─> [21 lines of output]
+ C:UsersUSERAppDataLocalProgramsPythonPython313python.exe C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82vendored-mesonmesonmeson.py setup C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82 C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82.mesonpy-13itl_5w -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82.mesonpy-13itl_5wmeson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82
Build dir: C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82.mesonpy-13itl_5w
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:Program Files (x86)Microsoft Visual StudioInstallervswhere.exe
..meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:UsersUSERAppDataLocalTemppip-install-setytts9numpy_c0913440ef0d41e28776db4dc780ce82.mesonpy-13itl_5wmeson-logsmeson-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.
New contributor
Scary_crimson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.