我试图在Databricks上的集群上安装带有!pip install vaex的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笔记本上运行它不起作用,因为它是一个交互式shell命令,需要输入才能给出。
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,但是它引发了一个非法的选项错误
发布于 2022-06-30 05:23:42
rustup-init 1.22.1 (76644d669 2020-07-08)
The installer for rustup
USAGE:
rustup-init [FLAGS] [OPTIONS]
FLAGS:
-v, --verbose Enable verbose output
-q, --quiet Disable progress output
-y Disable confirmation prompt.
--no-modify-path Don't configure the PATH environment variable
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--default-host <default-host> Choose a default host triple
--default-toolchain <default-toolchain> Choose a default toolchain to install
--default-toolchain none Do not install any toolchains
--profile [minimal|default|complete] Choose a profile
-c, --component <components>... Component name to also install
-t, --target <targets>... Target name to also install可以使用-y禁用确认提示。
像这样
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf > rustup.sh
sh rustup.sh -y
sudo bash -c "echo source $HOME/.cargo/env >> /etc/bash.bashrc"https://stackoverflow.com/questions/72810431
复制相似问题