kcap项目构建时setup.py bdist_wheel执行失败的问题求助
kcap项目构建时setup.py bdist_wheel执行失败的问题求助
我最近在尝试运行从GitHub获取的kcap项目里的build.py文件,结果遇到了构建失败的问题——具体错误提示是python setup.py bdist_wheel did not run successfully,退出码为1。
下面是我截取的部分错误输出内容:
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [255 lines of output] /tmp/pip-install-iexgtpky/cosmosis-standalone_2658dc83284a4b0e9c0e50b877f34ffa/setup.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources running bdist_wheel running build . . . mpifort -O3 -g -fPIC -I/tmp/pip-install-iexgtpky/cosmosis-standalone_2658dc83284a4b0e9c0e50b877f34ffa/cosmosis/datablock -std=gnu -ffree-line-length-none -O3 -fPIC -ffree-line-length-none -fno-stack-arrays -DMPI -c -o mpi/mpi_utils.o mpi_utils.F90 mpi_utils.F90:560:12: 560 | ...
我注意到错误输出里首先有一个pkg_resources API已被弃用的警告,之后在通过mpifort编译Fortran代码mpi_utils.F90的阶段也出现了异常(代码片段到第560行截断了)。有没有大佬能帮我分析下这个问题可能的成因,或者给一些可行的解决思路呀?
备注:内容来源于stack exchange,提问作者Steven Tanady




