投稿/コメントを表示します。

小川先生

いつもお世話になります。

CURSORで、動画の通り準備しようとしております。pip install -r requirementsでエラーが出ます。AIに聞いたらrenpapa4407さんと同じような答えでしたので、Visual Studio Build toolsをインストールして再度トライしました。
前回よりプロセスが重くなり、、やはりエラーになってしまいました。
AIに更に聞くとどんどん案を出してくるんですが、沼にはまる感じで、、先生にお聞きした方がいいかと思いまして。ご教授願えれば幸いです。

Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
+ meson setup C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817 C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817\.mesonpy-t43myipo -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817\.mesonpy-t43myipo\meson-python-native-file.ini
The Meson build system
Version: 1.10.0
Source dir: C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817
Build dir: C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817\.mesonpy-t43myipo
Build type: native build
Activating VS 18.1.1
Project name: scipy
Project version: 1.14.1
C compiler for the host machine: cl (msvc 19.50.35721 "Microsoft (R) C/C++ Optimizing Compiler Version 19.50.35721 for x64")
C linker for the host machine: link link 14.50.35721.0
C++ compiler for the host machine: cl (msvc 19.50.35721 "Microsoft (R) C/C++ Optimizing Compiler Version 19.50.35721 for x64")
C++ linker for the host machine: link link 14.50.35721.0
Cython compiler for the host machine: cython (cython 3.0.12)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Users\nmats\PythonDataClass\python_data\venv\Scripts\python.exe)
Run-time dependency python found: YES 3.14
Program cython found: YES (C:\Users\nmats\AppData\Local\Temp\pip-build-env-5l8fru0l\overlay\Scripts\cython.EXE)
Compiler for C supports arguments -Wno-unused-but-set-variable: NO
Compiler for C supports arguments -Wno-unused-function: NO
Compiler for C supports arguments -Wno-conversion: NO
Compiler for C supports arguments -Wno-misleading-indentation: NO
Library m found: NO

..\meson.build:84:0: ERROR: Unknown compiler(s): [['ifort'], ['ifx'], ['gfortran'], ['flang-new'], ['flang'], ['pgfortran'], ['g95']]
The following exception(s) were encountered:
Running `ifort --help` gave "[WinError 2] The system cannot find the file specified"
Running `ifort --version` gave "[WinError 2] The system cannot find the file specified"
Running `ifort -V` gave "[WinError 2] The system cannot find the file specified"
Running `ifx --help` gave "[WinError 2] The system cannot find the file specified"
Running `ifx --version` gave "[WinError 2] The system cannot find the file specified"
Running `ifx -V` gave "[WinError 2] The system cannot find the file specified"
Running `gfortran --help` gave "[WinError 2] The system cannot find the file specified"
Running `gfortran --version` gave "[WinError 2] The system cannot find the file specified"
Running `gfortran -V` gave "[WinError 2] The system cannot find the file specified"
Running `flang-new --help` gave "[WinError 2] The system cannot find the file specified"
Running `flang-new --version` gave "[WinError 2] The system cannot find the file specified"
Running `flang-new -V` gave "[WinError 2] The system cannot find the file specified"
Running `flang --help` gave "[WinError 2] The system cannot find the file specified"
Running `flang --version` gave "[WinError 2] The system cannot find the file specified"
Running `flang -V` gave "[WinError 2] The system cannot find the file specified"
Running `pgfortran --help` gave "[WinError 2] The system cannot find the file specified"
Running `pgfortran --version` gave "[WinError 2] The system cannot find the file specified"
Running `pgfortran -V` gave "[WinError 2] The system cannot find the file specified"
Running `g95 --help` gave "[WinError 2] The system cannot find the file specified"
Running `g95 --version` gave "[WinError 2] The system cannot find the file specified"
Running `g95 -V` gave "[WinError 2] The system cannot find the file specified"

A full log can be found at C:\Users\nmats\AppData\Local\Temp\pip-install-tk6jpv4x\scipy_63b6fe89b5f34edab77736390aba2817\.mesonpy-t43myipo\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.2 -> 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.
2025/12/23 09:13