Skip to content

while trying to install requirements.txt in local python 3.11 environment I got the error #30

@nmagrawal

Description

@nmagrawal

I did install python3.11, created 3.11 environment activated it, then when I was installing dependencies from requirements.txt I got following error:

Downloading scipy-1.9.1.tar.gz (42.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.0/42.0 MB 1.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
The Meson build system
Version: 0.62.2
Source dir: /private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93
Build dir: /private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-l7muoe1f/build
Build type: native build
Project name: SciPy
Project version: 1.9.1
C compiler for the host machine: cc (clang 17.0.0 "Apple clang version 17.0.0 (clang-1700.0.13.5)")
C linker for the host machine: cc ld64 1167.5
C++ compiler for the host machine: c++ (clang 17.0.0 "Apple clang version 17.0.0 (clang-1700.0.13.5)")
C++ linker for the host machine: c++ ld64 1167.5
Host machine cpu family: aarch64
Host machine cpu: arm64
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Library m found: YES

  ../../meson.build:41:0: ERROR: Unable to detect linker for compiler "gfortran -Wl,--version -Wno-conversion"
  stdout:
  stderr: collect2 version 14.2.0
  /usr/bin/ld -demangle -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/ -dynamic -arch arm64 -platform_version macos 15.0.0 0.0 -o a.out -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc/aarch64-apple-darwin24/14 -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc/aarch64-apple-darwin24/14/../../.. -lemutls_w -lheapt_w --version -lgcc -lSystem -no_compact_unwind -rpath @loader_path -rpath /opt/homebrew/Cellar/gcc/14.2.0_1/lib/gcc/current/gcc/aarch64-apple-darwin24/14 -rpath /opt/homebrew/Cellar/gcc/14.2.0_1/lib/gcc/current/gcc -rpath /opt/homebrew/Cellar/gcc/14.2.0_1/lib/gcc/current
  ld: unknown options: --version
  collect2: error: ld returned 1 exit status
  
  
  A full log can be found at /private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-l7muoe1f/build/meson-logs/meson-log.txt
  + meson setup --native-file=/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11 /private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93 /private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-l7muoe1f/build
  Traceback (most recent call last):
    File "/Users/nik/Downloads/opgov work/ally_cat/allycat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/Users/nik/Downloads/opgov work/ally_cat/allycat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/nik/Downloads/opgov work/ally_cat/allycat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 969, in get_requires_for_build_wheel
      with _project(config_settings) as project:
    File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
      return next(self.gen)
             ^^^^^^^^^^^^^^
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 948, in _project
      with Project.with_temp_working_dir(
    File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
      return next(self.gen)
             ^^^^^^^^^^^^^^
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 777, in with_temp_working_dir
      yield cls(source_dir, tmpdir, build_dir)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 682, in __init__
      self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 713, in _configure
      self._meson(
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 696, in _meson
      return self._proc('meson', *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-build-env-c_xk_q1h/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 691, in _proc
      subprocess.check_call(list(args))
    File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11', '/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93', '/private/var/folders/zz/4d7b267x5rj6f3c70py571xm0000gn/T/pip-install-nu8mllpf/scipy_3030c89dace74799b15200b328ceac93/.mesonpy-l7muoe1f/build']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

please let me know how can I resolve this issue

Thank you for the support
-Nikhil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions