pyenv: add Chinese translation (#7427)

feature/windows-fix-syntax-2
meowmeowcat 2021-11-14 02:13:21 +08:00 committed by GitHub
parent 07aca8e564
commit b8877dbc81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
pages.zh/common/pyenv.md Normal file
View File

@ -0,0 +1,28 @@
# pyenv
> 在多个 Python 版本之间轻松切换。
> 更多信息:<https://github.com/pyenv/pyenv>.
- 列出所有可用的命令:
`pyenv commands`
- 列出 `${PYENV_ROOT}/versions` 目录下的所有 Python 版本:
`pyenv versions`
- 在 `${PYENV_ROOT}/versions` 目录下安装一个 Python 版本:
`pyenv install {{2.7.10}}`
- 在 `${PYENV_ROOT}/versions` 目录下卸载一个 Python 版本:
`pyenv uninstall {{2.7.10}}`
- 设置在当前机器中全局使用的 Python 版本:
`pyenv global {{2.7.10}}`
- 设置在当前目录及其下所有目录中使用的 Python 版本:
`pyenv local {{2.7.10}}`