我想安装没有Anaconda的笔记本电脑。我使用的是Python 3.12.0版本。
当使用pip install notebook
安装Xboxyter Notebook时,出现以下错误。
Collecting pywinpty (from jupyter-server<3,>=2.4.0->notebook)
Using cached pywinpty-2.0.11.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.*
- 像here和here一样升级
pip
不起作用。 - 我不想降级Python from 3.10 to 3.9或from 3.12 to 3.11。
有人能帮我解决这个错误吗?
2条答案
按热度按时间2fjabf4q1#
我也遇到了同样的问题,我把Python 3.12降级到3.11,它工作了。我可以安装Jupiter Notebook。
hlswsv352#
我也无法使用Windows命令提示符安装它,但我可以使用Git Bash安装它。
以下是版本信息
安装的Python包包括
我希望它能有所帮助,即使我不明白为什么它会起作用。