ChrisKyle
Posts: 23
Joined: Mon Feb 20, 2023 9:32 am

Spicy not installing

Thu Mar 23, 2023 4:36 pm

Hey folks...
Whenever I try to install Spicy using "sudo pip3 install spicy"
It fails with some error messages and keeps retrying again and again....
Any help is appreciated ..Thank You!

These are the error messages I got...:

pi@raspberrypi:~ $ sudo pip3 install spicy

Code: Select all

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting spicy
  Downloading spicy-0.16.0-py2.py3-none-any.whl (1.7 kB)
Collecting scipy
  Downloading scipy-1.10.1.tar.gz (42.4 MB)
     |████████████████████████████████| 42.4 MB 15 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 /tmp/tmpskp_ivr4_in_process.py prepare_metadata_f                                                                             or_build_wheel /tmp/tmpnq5pv3xz
         cwd: /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f998ae5940b801eb8f6
    Complete output (40 lines):
    The Meson build system
    Version: 1.0.1
    Source dir: /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f998ae5940b801eb8f6
    Build dir: /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f998ae5940b801eb8f6/.mesonpy-_5gddfk5/build
    Build type: native build
    Project name: SciPy
    Project version: 1.10.1
    C compiler for the host machine: cc (gcc 10.2.1 "cc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
    C linker for the host machine: cc ld.bfd 2.35.2
    C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Raspbian 10.2.1-6+r  pi1) 10.2.1 20210110")
    C++ linker for the host machine: c++ ld.bfd 2.35.2
    Cython compiler for the host machine: cython (cython 0.29.33)
    Host machine cpu family: arm
    Host machine cpu: armv7l
    Compiler for C supports arguments -Wno-unused-but-set-variable: YES
    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:63: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'"
    Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
    Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'                                                                             "
    Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
    Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
    Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran                                                                             '"
    Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
    Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran                                                                             '"
    Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'                                                                             "
    Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
    Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
    Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
    Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
    Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"

    A full log can be found at /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f998                                                                             ae5940b801eb8f6/.mesonpy-_5gddfk5/build/meson-logs/meson-log.txt
    + meson setup --prefix=/usr /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f99                                                                             8ae5940b801eb8f6 /tmp/pip-install-up2xk2ks/scipy_c9d9e2ed11754f998ae5940b801eb8f                                                                             6/.mesonpy-_5gddfk5/build --native-file=/tmp/pip-install-up2xk2ks/scipy_c9d9e2ed                                                                             11754f998ae5940b801eb8f6/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/84/a9/2bf119f3f9cff1                                                                             f376f924e39cfae18dec92a1514784046d185731301281/scipy-1.10.1.tar.gz#sha256=2cf9df                                                                             b80a7b4589ba4c40ce7588986d6d5cebc5457cad2c2880f6bc2d42f3a5 (from https://pypi.or                                                                             g/simple/scipy/) (requires-python:<3.12,>=3.8). Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpskp_ivr4_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnq5pv3xz Check the logs for full command output.
And it starts downloading Spicy again........and same process continues........

DeaD_EyE
Posts: 120
Joined: Sat May 17, 2014 9:49 pm

Re: Spicy not installing

Fri Mar 24, 2023 9:21 am

Try to install gfortran and then try the pip installation again. The fortran compiler is missing and it seems that there is no binary package available.

Installing gfortran:

Code: Select all

sudo apt-get install gfortran

ChrisKyle
Posts: 23
Joined: Mon Feb 20, 2023 9:32 am

Re: Spicy not installing

Mon Mar 27, 2023 5:08 am

DeaD_EyE wrote:
Fri Mar 24, 2023 9:21 am
Try to install gfortran and then try the pip installation again. The fortran compiler is missing and it seems that there is no binary package available.

Installing gfortran:

Code: Select all

sudo apt-get install gfortran
Will try...thank you so much!

Return to “Python”