Closed yangyang2023a closed 1 month ago
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.
The error message suggests that there is an issue with preparing the metadata for the installation of SciPy. Specifically, it mentions an error with the Meson build system and unknown compilers.
The relevant error message states:
..meson.build:57:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']] Additionally, it mentions that it couldn't find the specified compilers:
Running gfortran --version
gave "[Errno 2] No such file or directory: 'gfortran'"
Running flang --version
gave "[Errno 2] No such file or directory: 'flang'"
Running nvfortran --version
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running pgfortran --version
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running ifort --version
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifx --version
gave "[Errno 2] No such file or directory: 'ifx'"
Running g95 --version
gave "[Errno 2] No such file or directory: 'g95'"
This error usually occurs when the required compilers are not installed on the system. In this case, the system is missing the necessary compilers like gfortran, flang, nvfortran, pgfortran, ifort, ifx, and g95.
To resolve this error, you will need to install the missing compilers on your system. Once the compilers are installed and available in the system's PATH, you can try installing SciPy again.
Note: The specific steps to install the compilers depend on the operating system you are using.
Stale issue message
When I use 'pip3 install -U zetascale' to install the package. It encouters the following errors:
Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [40 lines of output]
meson setup /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0 /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl/meson-python-native-file.ini The Meson build system Version: 1.4.0 Source dir: /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0 Build dir: /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl Build type: native build Project name: SciPy Project version: 1.9.3 C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0") C linker for the host machine: cc ld.bfd 2.38 C++ compiler for the host machine: c++ (gcc 11.3.0 "c++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0") C++ linker for the host machine: c++ ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -Wno-unused-but-set-variable: YES Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached) Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Wno-conversion: YES Compiler for C supports arguments -Wno-misleading-indentation: YES Compiler for C supports arguments -Wno-incompatible-pointer-types: YES Library m found: YES
../meson.build:57:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']] The following exception(s) were encountered: Running
gfortran --version
gave "[Errno 2] No such file or directory: 'gfortran'" Runninggfortran -V
gave "[Errno 2] No such file or directory: 'gfortran'" Runningflang --version
gave "[Errno 2] No such file or directory: 'flang'" Runningflang -V
gave "[Errno 2] No such file or directory: 'flang'" Runningnvfortran --version
gave "[Errno 2] No such file or directory: 'nvfortran'" Runningnvfortran -V
gave "[Errno 2] No such file or directory: 'nvfortran'" Runningpgfortran --version
gave "[Errno 2] No such file or directory: 'pgfortran'" Runningpgfortran -V
gave "[Errno 2] No such file or directory: 'pgfortran'" Runningifort --version
gave "[Errno 2] No such file or directory: 'ifort'" Runningifort -V
gave "[Errno 2] No such file or directory: 'ifort'" Runningifx --version
gave "[Errno 2] No such file or directory: 'ifx'" Runningifx -V
gave "[Errno 2] No such file or directory: 'ifx'" Runningg95 --version
gave "[Errno 2] No such file or directory: 'g95'" Runningg95 -V
gave "[Errno 2] No such file or directory: 'g95'"A full log can be found at /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl/meson-logs/meson-log.txt [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Upvote & Fund