Skip to content

Install error: metadata-generation-failed #3610

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

Open
billrosenblatt opened this issue Apr 18, 2025 · 1 comment
Open

Install error: metadata-generation-failed #3610

billrosenblatt opened this issue Apr 18, 2025 · 1 comment

Comments

@billrosenblatt
Copy link

Hi,

Using pip 25.0.1, python 3.13. With command pip install --upgrade gensim, I get the following output. Any help would be most appreciated!

C:\Windows\System32>pip install --upgrade gensim
Collecting gensim
Downloading gensim-4.3.3.tar.gz (23.3 MB)
---------------------------------------- 23.3/23.3 MB 32.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy<2.0,>=1.18.5 (from gensim)
Downloading numpy-1.26.4.tar.gz (15.8 MB)
---------------------------------------- 15.8/15.8 MB 29.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting scipy<1.14.0,>=1.7.0 (from gensim)
Downloading scipy-1.13.1.tar.gz (57.2 MB)
---------------------------------------- 57.2/57.2 MB 33.6 MB/s eta 0:00:00
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
╰─> [47 lines of output]
+ meson setup C:\Users\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6 C:\Users\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6.mesonpy-ral0yq9o -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6.mesonpy-ral0yq9o\meson-python-native-file.ini
The Meson build system
Version: 1.7.2
Source dir: C:\Users\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6
Build dir: C:\Users\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6.mesonpy-ral0yq9o
Build type: native build
Project name: scipy
Project version: 1.13.1
Activating VS 17.13.5
C compiler for the host machine: cl (msvc 19.43.34809 "Microsoft (R) C/C++ Optimizing Compiler Version 19.43.34809 for x64")
C linker for the host machine: link link 14.43.34809.0
C++ compiler for the host machine: cl (msvc 19.43.34809 "Microsoft (R) C/C++ Optimizing Compiler Version 19.43.34809 for x64")
C++ linker for the host machine: link link 14.43.34809.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\billr\AppData\Local\Programs\Python\Python313\python.exe)
Run-time dependency python found: YES 3.13
Program cython found: YES (C:\Users\billr\AppData\Local\Temp\pip-build-env-321zo9fb\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:78:0: ERROR: Unknown compiler(s): [['ifort'], ['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 `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\billr\AppData\Local\Temp\pip-install-7wcj52o3\scipy_5a10a998bd774de791af8d9557cb87d6\.mesonpy-ral0yq9o\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.

@futherus
Copy link

Encountered same issue, to fix you need to install fortran compiler. Package for Arch Linux: gcc-fortran, but I don't know how to install fortran compiler on Windows.

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

2 participants