I wanted to install the astropy package using pip, on Termux, but every time I get an error saying subprocess-exited-with-error
.
I reinstalled Termux from F-droid, as suggested from the internet. But the error persists. I tried to do pkg upgrade
. I even tried to install it in venv but nothing works. What can I do?
Here is a larger part of the error log:
An error occurred while building with CMake. Command:
/data/data/com.termux/files/usr/bin/cmake --build . --target install --config Release -- Install target:
install Source directory: /data/data/com.termux/files/usr/tmp/pip-install-lw1v2zxh/ninja_04c246fada184dbcb56ad4316cf3ba66
Working directory: /data/data/com.termux/files/usr/tmp/pip-install-lw1v2zxh/ninja_04c246fada184dbcb56ad4316cf3ba66/_skbuild/linux-aarch64-3.11/cmake-build Please check the install target is valid and see CMake's output for more information.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ninja
Failed to build patchelf ninja ERROR: Could not build wheels for patchelf, ninja, 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 backend 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.
[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.
~ $
New contributor
dronino_matto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.