【JupyterLab】pip安装过程问题记录(未完)

1、使用以下命令安装报错

bash 复制代码
pip install jupyterlab
bash 复制代码
ERROR: Could not find a version that satisfies the requirement jupyterlab (from versions: none)
ERROR: No matching distribution found for jupyterlab

2、修改运行命令仍然出现报错

bash 复制代码
pip install jupyterlab -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
bash 复制代码
  Downloading https://mirrors.cloud.tencent.com/pypi/packages/d3/89/2b9113eabacfe3bbebcdf95c24772e2267c7b6b9fed6e35bffba2080a4c1/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.

百度机翻:

下载中https://mirrors.cloud.tencent.com/pypi/packages/d3/89/2b9113eabacfe3bbebcdf95c24772e2267c7b6b9fed6e35bffba2080a4c1/pywinpty-2.0.10.tar.gz(26 kB)

正在安装生成依赖项。。。完成

获取制造车轮的要求。。。完成

正在准备元数据(pyproject.toml)。。。错误

错误:子进程退出时出错

×准备元数据(pyproject.toml)未成功运行。

│ 退出代码:1

╰─> 6行输出

Rust包管理器Cargo未安装或不在PATH上。

这个包需要Rust和Cargo来编译扩展。通过安装

系统的包管理器或通过https://rustup.rs/

正在检查Rust工具链。。。。

输出结束

注意:此错误源自子流程,可能不是pip的问题。

错误:元数据生成失败

×生成包元数据时遇到错误。

╰─> 输出见上文。

注意:这是上述包的问题,而不是pip的问题。

提示:详见上文。

相关推荐
GPU实战笔记3 天前
云端写 Python:JupyterLab 和 VS Code Remote-SSH,按工作方式选
python·vs code·jupyterlab·remote-ssh·远程开发·云端开发
Escalating_xu5 天前
【Python】使用库:标准库、第三方库、pip、项目实战与程序打包
java·python·pip
青春不朽5127 天前
pip 安装慢、超时、报错?一份国内源配置 + 9 个高频报错对照表
pip
ysu_03149 天前
uv实战指南-从Python版本虚拟环境到pyproject依赖管理
开发语言·python·pip·uv·虚拟环境·包管理·依赖管理
伞伞悦读20 天前
【第39期】Python 第三方包安装详解:pip、conda、requirements、版本锁定和镜像源
python·conda·pip
GPU实战笔记20 天前
云端 Python 开发:JupyterLab 还是 VS Code Remote-SSH?
python·vs code·jupyterlab·remote-ssh·远程开发
H Journey21 天前
pip 和uv 开发和部署python项目
python·pip·uv
北城笑笑24 天前
Python Dev 02 & Tkinter webbrowser 实战,手写第一个 Python 桌面 GUI 小工具
人工智能·python·pip
王_teacher1 个月前
pycharm 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
pycharm·pip·pycharm配置·无法将“pip”项识别·无法将pip项识别