pip install py-near
Collecting py-near
Using cached py_near-1.1.50-py3-none-any.whl.metadata (4.7 kB)
Collecting ed25519==1.5 (from py-near)
Using cached ed25519-1.5.tar.gz (868 kB)
Preparing metadata (setup.py) ... done
Collecting httpx==0.26.0 (from py-near)
Using cached httpx-0.26.0-py3-none-any.whl.metadata (7.6 kB)
Collecting py-near-primitives==0.2.3 (from py-near)
Using cached py_near_primitives-0.2.3.tar.gz (26 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
💥 maturin failed
Caused by: No such file or directory (os error 2)
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-q_lx2d4b', '--interpreter', '/usr/bin/python3']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-q_lx2d4b --interpreter /usr/bin/python3`
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I am using a Docker container to run Linux on MacOS:
uname -a
Linux c81a8fece89b 6.10.14-linuxkit #1 SMP Thu Oct 24 19:28:55 UTC 2024 aarch64 Linux
I have an error when installing py-near:
I am using a Docker container to run Linux on MacOS: