pyenv shell 设置或显示特定shell的Python版本 pyenv install 安装一个或多个Python版本 pyenv uninstall 卸载一个或多个Python版本 pyenv update 更新缓存的版本数据库 pyenv rehash 重新生成pyenv shims(切换Python版本后运行此命令) pyenv vname 显示当前Python版本 pyenv ver
pyenv install --list | grep 3.13 # 执行安装(耗时约15-30分钟) pyenv install 3.13.2 -v 1. 2. 3. 4. 5. 5. 版本管理 验证安装 python --version # 预期输出:Python 3.13.2 python -c "import ssl; print(ssl.OPENSSL_VERSION)" # 验证OpenSSL版本(应显示1.1.1或更高) 1. 2. 3. 4. 5....
# 验证 Python 版本python--version 1. 2. 此命令将输出 Python 的版本号,确保它显示你所安装的版本。 关系图 通过以下 mermaid 语法的 ER 图,我们可以更清晰地了解pyenv版本管理的关系。 PYENVINSTALLSPYTHON_VERSIONSstringversionstringrelease_datebooleanis_activemanagesuses 甘特图 以下是一个使用 mermaid 语法的...
使用pyenv install --list 查看可以安装的python版本,pyenv install <version> 安装python,可以使用-v参数,查看安装过程。更多详细信息,使用 python install help命令了解 $pyenv install --help Usage: pyenv install [-f] [-kvp] <version>pyenv install [-f] [-kvp] <definition-file>pyenv install-l|--lis...
pyenv install -l 安装指定版本Python pyenv install <version> # 安装3.11.1版本的Python pyenv install 3.11.1 查看已安装版本Python、当前活动的Python版本 同时会在当前被激活的版本前添加星号。如果未激活任何版本Python,则默认在system行显示星号 # 查看已安装的Python版本pyenv versions# 显示当前活动的Python版本...
$ pyenv global python2.7.10 pyenv: version `python2.7.10' not installed $ pyenv install 2.7.10 pyenv: /Users/xeli/.pyenv/versions/2.7.10 already exists continue with installation? (y/N) 还:$ python2.7 pyenv: python2.7: command not found The `python2.7' command exists in these Python ...
$ pyenv global python2.7.10 pyenv: version `python2.7.10' not installed $ pyenv install 2.7.10 pyenv: /Users/xeli/.pyenv/versions/2.7.10 already exists continue with installation? (y/N) 还:$ python2.7 pyenv: python2.7: command not found The `python2.7' command exists in these Python ...
现在您可以安装所需的任何版本的 Python。例如,要安装 Python 3.12 pyenv install 3.12 或者您可能需要安装 Python 2.7 等旧版本 pyenv install 2.7 列出系统上安装的所有 Python 版本 pyenv install --list Step 6: Set a Global Python Version 您可以设置默认使用的全局 Python 版本,比如将 Python 3.12 设置为...
1 屏幕输入pyenv命令,会看到如下可以使用的命令 commands List all available pyenv commands local Set or show the local application-specific Python version global Set or show the global Python version shell Set or show the shell-specific Python version install Install a Python version usi...
global Set or show the global Python version shell Set or show the shell-specific Python versioninstallInstall a Python version using python-build uninstall Uninstall a specific Python version rehash Rehash pyenv shims(run this after installing executables)version Show the current Python version and it...