MacOS系统下无法安装Python的shazamio包该如何解决?
在Mac上安装shazamio包失败的问题
我使用pip install shazamio命令安装Python的shazamio包,该操作在Windows电脑上可正常完成,但在Mac上执行时出现如下错误:
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: Can't find /private/var/folders/q1/288l_zvn2sl7_lx4cv34yz3m0000gn/T/pip-install-ncjk92fq/shazamio-core_d948f73e48d346ff9dec627058e2b80c/Cargo.toml (in /private/var/folders/q1/288l_zvn2sl7_lx4cv34yz3m0000gn/T/pip-install-ncjk92fq/shazamio-core_d948f73e48d346ff9dec627058e2b80c) Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/private/var/folders/q1/288l_zvn2sl7_lx4cv34yz3m0000gn/T/pip-modern-metadata-lcpjwpc7', '--interpreter', '/Users/polzimac/Documents/DEV/venv/shazamio/bin/python3']' returned non-zero exit status 1. Checking for Rust toolchain.... Running `maturin pep517 write-dist-info --metadata-directory /private/var/folders/q1/288l_zvn2sl7_lx4cv34yz3m0000gn/T/pip-modern-metadata-lcpjwpc7 --interpreter /Users/polzimac/Documents/DEV/venv/shazamio/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.
我已通过以下命令安装了Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
内容的提问来源于stack exchange,提问作者Rapid1898
相关产品推荐
相关产品推荐

