ziyixi / pyfk

PyFK is the python implementation of FK used to calculate the Green's function and the synthetic waveforms for the 1D Earth model.
https://pyfk.ziyixi.science
Apache License 2.0
52 stars 13 forks source link

can not be installed in Ubuntu using pip #15

Open ZiguoFu opened 6 months ago

ZiguoFu commented 6 months ago

Dear ziyi,

when I installed it using pip on the Ubuntu, it shows errors as belows. My python verison is 3.8. Could you help me fix it?

image

Collecting pyfk Using cached pyfk-0.3.0.tar.gz (382 kB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [347 lines of output] Collecting poetry-core@ https://github.com/python-poetry/poetry-core/archive/refs/tags/1.1.0a7.zip Using cached https://github.com/python-poetry/poetry-core/archive/refs/tags/1.1.0a7.zip Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools Using cached setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB) Collecting numpy Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB) Collecting obspy Using cached obspy-1.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.6 kB) Collecting cython Using cached Cython-3.0.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB) Collecting scipy Using cached scipy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (58 kB) Collecting cysignals Using cached cysignals-1.11.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB) Collecting mpi4py Using cached mpi4py-3.1.5.tar.gz (2.5 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting matplotlib>=3.3 (from obspy) Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (5.7 kB) Collecting lxml (from obspy) Using cached lxml-5.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.5 kB) Collecting sqlalchemy (from obspy) Using cached SQLAlchemy-2.0.29-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB) Collecting decorator (from obspy) Using cached decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB) Collecting requests (from obspy) Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting contourpy>=1.0.1 (from matplotlib>=3.3->obspy) Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.9 kB) Collecting cycler>=0.10 (from matplotlib>=3.3->obspy) Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) Collecting fonttools>=4.22.0 (from matplotlib>=3.3->obspy) Using cached fonttools-4.50.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (159 kB) Collecting kiwisolver>=1.0.1 (from matplotlib>=3.3->obspy) Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (6.4 kB) Collecting packaging>=20.0 (from matplotlib>=3.3->obspy) Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB) Collecting pillow>=6.2.0 (from matplotlib>=3.3->obspy) Using cached pillow-10.2.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.7 kB) Collecting pyparsing>=2.3.1 (from matplotlib>=3.3->obspy) Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB) Collecting python-dateutil>=2.7 (from matplotlib>=3.3->obspy) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting importlib-resources>=3.2.0 (from matplotlib>=3.3->obspy) Using cached importlib_resources-6.4.0-py3-none-any.whl.metadata (3.9 kB) Collecting charset-normalizer<4,>=2 (from requests->obspy) Using cached charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB) Collecting idna<4,>=2.5 (from requests->obspy) Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB) Collecting urllib3<3,>=1.21.1 (from requests->obspy) Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB) Collecting certifi>=2017.4.17 (from requests->obspy) Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB) Collecting typing-extensions>=4.6.0 (from sqlalchemy->obspy) Using cached typing_extensions-4.10.0-py3-none-any.whl.metadata (3.0 kB) Collecting greenlet!=0.4.17 (from sqlalchemy->obspy) Using cached greenlet-3.0.3-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB) Collecting zipp>=3.1.0 (from importlib-resources>=3.2.0->matplotlib>=3.3->obspy) Using cached zipp-3.18.1-py3-none-any.whl.metadata (3.5 kB) Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib>=3.3->obspy) Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB) Using cached setuptools-69.2.0-py3-none-any.whl (821 kB) Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Using cached obspy-1.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.5 MB) Using cached Cython-3.0.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB) Using cached scipy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.5 MB) Using cached cysignals-1.11.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB) Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB) Using cached lxml-5.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.0 MB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Using cached SQLAlchemy-2.0.29-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached certifi-2024.2.2-py3-none-any.whl (163 kB) Using cached charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (141 kB) Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301 kB) Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB) Using cached fonttools-4.50.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB) Using cached greenlet-3.0.3-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (622 kB) Using cached idna-3.6-py3-none-any.whl (61 kB) Using cached importlib_resources-6.4.0-py3-none-any.whl (38 kB) Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB) Using cached packaging-24.0-py3-none-any.whl (53 kB) Using cached pillow-10.2.0-cp38-cp38-manylinux_2_28_x86_64.whl (4.5 MB) Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) Using cached typing_extensions-4.10.0-py3-none-any.whl (33 kB) Using cached urllib3-2.2.1-py3-none-any.whl (121 kB) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Using cached zipp-3.18.1-py3-none-any.whl (8.2 kB) Building wheels for collected packages: poetry-core, mpi4py Building wheel for poetry-core (pyproject.toml): started Building wheel for poetry-core (pyproject.toml): finished with status 'done' Created wheel for poetry-core: filename=poetry_core-1.1.0a7-py3-none-any.whl size=423880 sha256=ddf54e9faabe7c388380e8222cb7dc6701dbe3c6483cada3f9e450af966e321c Stored in directory: /tmp/pip-ephem-wheel-cache-oqiitr40/wheels/71/67/42/b821aba6e56e84d280494e57b33877878f1e8e1e442272689d Building wheel for mpi4py (pyproject.toml): started Building wheel for mpi4py (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for mpi4py (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [228 lines of output]
        running bdist_wheel
        running build
        running build_src
        running build_py
        creating build
        creating build/lib.linux-x86_64-cpython-38
        creating build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/bench.py -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/run.py -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-cpython-38/mpi4py
        creating build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/_core.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        creating build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/util/pkl5.py -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/util/__init__.py -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/util/dtlib.py -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/__main__.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/dl.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/run.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/__init__.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/bench.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/MPI.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/py.typed -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-cpython-38/mpi4py
        copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-cpython-38/mpi4py
        creating build/lib.linux-x86_64-cpython-38/mpi4py/include
        creating build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-cpython-38/mpi4py/include/mpi4py
        copying src/mpi4py/futures/aplus.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/__main__.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/__init__.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/server.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/pool.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/_core.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/futures/_lib.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/futures
        copying src/mpi4py/util/pkl5.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/util/dtlib.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        copying src/mpi4py/util/__init__.pyi -> build/lib.linux-x86_64-cpython-38/mpi4py/util
        running build_clib
        MPI configuration: [mpi] from 'mpi.cfg'
        MPI C compiler:    /home/scott/miniconda3/envs/MCMTpy/bin/mpicc
        MPI C++ compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpicxx
        MPI F compiler:    /home/scott/miniconda3/envs/MCMTpy/bin/mpifort
        MPI F90 compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpif90
        MPI F77 compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpif77
        checking for library 'lmpe' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        building 'mpe' dylib library
        creating build/temp.linux-x86_64-cpython-38
        creating build/temp.linux-x86_64-cpython-38/src
        creating build/temp.linux-x86_64-cpython-38/src/lib-pmpi
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-cpython-38/src/lib-pmpi/mpe.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        warning: build_clib: command '/home/scott/miniconda3/envs/MCMTpy/bin/mpicc' failed with exit code 1

        warning: build_clib: building optional library "mpe" failed

        checking for library 'vt-mpi' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        checking for library 'vt.mpi' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        building 'vt' dylib library
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-cpython-38/src/lib-pmpi/vt.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        warning: build_clib: command '/home/scott/miniconda3/envs/MCMTpy/bin/mpicc' failed with exit code 1

        warning: build_clib: building optional library "vt" failed

        checking for library 'vt-mpi' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        checking for library 'vt.mpi' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        building 'vt-mpi' dylib library
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-cpython-38/src/lib-pmpi/vt-mpi.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        warning: build_clib: command '/home/scott/miniconda3/envs/MCMTpy/bin/mpicc' failed with exit code 1

        warning: build_clib: building optional library "vt-mpi" failed

        checking for library 'vt-hyb' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        checking for library 'vt.ompi' ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        building 'vt-hyb' dylib library
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-cpython-38/src/lib-pmpi/vt-hyb.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        warning: build_clib: command '/home/scott/miniconda3/envs/MCMTpy/bin/mpicc' failed with exit code 1

        warning: build_clib: building optional library "vt-hyb" failed

        running build_ext
        MPI configuration: [mpi] from 'mpi.cfg'
        MPI C compiler:    /home/scott/miniconda3/envs/MCMTpy/bin/mpicc
        MPI C++ compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpicxx
        MPI F compiler:    /home/scott/miniconda3/envs/MCMTpy/bin/mpifort
        MPI F90 compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpif90
        MPI F77 compiler:  /home/scott/miniconda3/envs/MCMTpy/bin/mpif77
        checking for dlopen() availability ...
        checking for header 'dlfcn.h' ...
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -I/home/scott/miniconda3/envs/MCMTpy/include/python3.8 -c _configtest.c -o _configtest.o
        success!
        removing: _configtest.c _configtest.o
        success!
        checking for library 'dl' ...
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -I/home/scott/miniconda3/envs/MCMTpy/include/python3.8 -c _configtest.c -o _configtest.o
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-cpython-38 -ldl -o _configtest
        success!
        removing: _configtest.c _configtest.o _configtest
        checking for function 'dlopen' ...
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -I/home/scott/miniconda3/envs/MCMTpy/include/python3.8 -c _configtest.c -o _configtest.o
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-cpython-38 -ldl -o _configtest
        success!
        removing: _configtest.c _configtest.o _configtest
        building 'mpi4py.dl' extension
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/home/scott/miniconda3/envs/MCMTpy/include/python3.8 -c src/dynload.c -o build/temp.linux-x86_64-cpython-38/src/dynload.o
        gcc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/scott/miniconda3/envs/MCMTpy/lib -Wl,-rpath-link,/home/scott/miniconda3/envs/MCMTpy/lib -L/home/scott/miniconda3/envs/MCMTpy/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/scott/miniconda3/envs/MCMTpy/lib -Wl,-rpath-link,/home/scott/miniconda3/envs/MCMTpy/lib -L/home/scott/miniconda3/envs/MCMTpy/lib build/temp.linux-x86_64-cpython-38/src/dynload.o -Lbuild/temp.linux-x86_64-cpython-38 -ldl -o build/lib.linux-x86_64-cpython-38/mpi4py/dl.cpython-38-x86_64-linux-gnu.so
        checking for MPI compile and link ...
        /home/scott/miniconda3/envs/MCMTpy/bin/mpicc -pthread -B /home/scott/miniconda3/envs/MCMTpy/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -O2 -isystem /home/scott/miniconda3/envs/MCMTpy/include -fPIC -I/home/scott/miniconda3/envs/MCMTpy/include/python3.8 -c _configtest.c -o _configtest.o
        --------------------------------------------------------------------------
        The Open MPI wrapper compiler was unable to find the specified compiler
        x86_64-conda-linux-gnu-cc in your PATH.

        Note that this compiler was either specified at configure time or in
        one of several possible environment variables.
        --------------------------------------------------------------------------
        failure.
        removing: _configtest.c _configtest.o
        error: Cannot compile MPI programs. Check your configuration!!!
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for mpi4py
  Successfully built poetry-core
  Failed to build mpi4py
  ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
  [end of output]

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

× pip subprocess to install build dependencies 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.

LiShuai-ls commented 5 months ago

hi!Could you please tell me how you do to settle this problem?

ZiguoFu commented 5 months ago

Sorry, the original issue is not settled, but I recommend you to use conda instead of pip.