uv
2025年9月5日小于 1 分钟
指定镜像
uv add moviepy --default-index https://mirrors.aliyun.com/pypi/simple/
uv venv .venv
.venv\Scripts\activate
uv pip install ipykernel
python -m ipykernel install --user --name=uv-env --display-name "Python (uv)"
Command | What it does |
---|---|
uv add ipykernel | Adds the package to the environment AND updates uv.toml (project dependency file) |
uv pip install ipykernel | Installs the package only into the environment (no record in uv.toml ) |
uv sync | 重装 |
uv venv .venv | 创建虚拟环境 |
uv init | 初始化 |
jupyter kernelspec list