如何安装货物,Rust Package Manager在Databricks上
我正在尝试使用!PIP安装VAEX
在Databricks上的群集上安装VAEX,但是安装失败了,因为它具有需要货物的依赖项,称为Blake3。
Collecting blake3
Using cached blake3-0.3.1.tar.gz (131 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
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
转到重定向链接具有安装货物
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
但在databricks python Notebook上运行的命令,因为它是不起作用的,因为它是一个交互式壳命令,需要给出输入。
Current installation options:
default host triple: aarch64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
我尝试过curl -proto'= https'-tlsv1.2 -ssf https://sh.rustup.rs | sh -1
,但它引发了非法选项错误
I'm trying to install Vaex with !pip install vaex
on a cluster on Databricks, but the installation is failing because it has a dependency called blake3, which needs Cargo.
Collecting blake3
Using cached blake3-0.3.1.tar.gz (131 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
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Going to the redirected link has a command to install Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
But running it on a Databricks python notebook doesn't work because it is an interactive shell command which needs an input to be given.
Current installation options:
default host triple: aarch64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
I have tried curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -1
but it throws an illegal option error
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用-y禁用确认提示。
像这样
you can use -y to Disable confirmation prompt.
like this