mise sync python
- 用法:
mise sync python [--pyenv] [--uv] - 作用: 修改状态
- 源代码:
src/cli/sync/python.rs
将通过 pyenv 或 uv 安装的 python 版本链接到 mise
Use this to make versions installed by another version manager available to mise. It does not overwrite managed installs, runtime aliases, or links from other providers. With --uv, it also links mise's python versions into uv. Pass --pyenv, --uv, or both; with neither, nothing is linked.
Flags
--pyenv— Get tool versions from pyenv--uv— Link uv's python versions into mise and mise's python versions into uv-h --help— Print help
示例
Use a python that pyenv installed
pyenv install 3.13.0
mise sync python --pyenv
mise use -g [email protected]Share python versions with uv in both directions
uv python install 3.13.0
mise install [email protected]
mise sync python --uv
mise exec [email protected] -- python -V
uv run -p 3.12.0 -- python -V