Setup.py bdist_wheel не удалось установитьPython

Программы на Python
Anonymous
Setup.py bdist_wheel не удалось установить

Сообщение Anonymous »

Я пытаюсь запустить файл build.py, полученный с github (https://github.com/KiDS-WL/kcap.git), и здесь я получил сообщение об ошибке, сообщающее, что setup.py bdist_wheel не установлен. успешно.
Вот часть сообщения об ошибке:

Код: Выделить всё

  × 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 |             seed_point,            &!
|            1
......
650 |             empty_buffer,      &! not sending anything
|            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).
.
.
.
Traceback (most recent call last):
File "", line 2, in 
File "
", line 34, in 
File "/tmp/pip-install-iexgtpky/cosmosis-standalone_2658dc83284a4b0e9c0e50b877f34ffa/setup.py", line 142, in 
setup(name = 'cosmosis-standalone',
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
self.run_command("build")
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/steven/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/tmp/pip-install-iexgtpky/cosmosis-standalone_2658dc83284a4b0e9c0e50b877f34ffa/setup.py", line 122, in run
compile_library(env)
File "/tmp/pip-install-iexgtpky/cosmosis-standalone_2658dc83284a4b0e9c0e50b877f34ffa/setup.py", line 82, in compile_library
subprocess.check_call(["make"], env=env, cwd="cosmosis")
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cosmosis-standalone
Я использую WSL в Windows 11
Я пробовал:
  • pip install Cmake
  • pip install --upgrade setuptools колесо
Есть предложения, как это исправить?< /п>

Подробнее здесь: https://stackoverflow.com/questions/790 ... ccessfully

Вернуться в «Python»