首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在数据库上安装货物,锈蚀包管理器

如何在数据库上安装货物,锈蚀包管理器
EN

Stack Overflow用户
提问于 2022-06-30 04:49:31
回答 1查看 478关注 0票数 0

我试图在Databricks上的集群上安装带有!pip install vaex的Vaex,但是安装失败了,因为它有一个名为blake3的依赖项,它需要货物。

代码语言:javascript
复制
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

重定向链路有一个安装货物的命令

代码语言:javascript
复制
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

但是在Databricks python笔记本上运行它不起作用,因为它是一个交互式shell命令,需要输入才能给出。

代码语言:javascript
复制
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,但是它引发了一个非法的选项错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-30 05:23:42

代码语言:javascript
复制
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禁用确认提示。

像这样

代码语言:javascript
复制
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"
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72810431

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档