如何解决pip install jupyter出现error: subprocess-exited-with-error错误?

 

安装环境
操作系统:Windows
Python:3.10.7

安装虚拟环境的时候出错

pip install jupyter

出现错误

Collecting pywinpty>=1.1.0
  Using cached pywinpty-2.0.10.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
  ╰─> [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

× 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.

物联沃分享整理
物联沃-IOTWORD物联网 » 如何解决pip install jupyter出现error: subprocess-exited-with-error错误?

发表评论