简体   繁体   English

查找可用于“pyenv install”的 Python 版本

[英]Finding versions of Python that are available for "pyenv install"

I want to know what Python versions I could install using the pyenv install command.我想知道我可以使用pyenv install命令安装哪些 Python 版本。 pyenv versions lists only installed versions and does not appear to have an option to list available versions. pyenv versions仅列出已安装的版本,并且似乎没有列出可用版本的选项。

How can I find out what versions of Python I can install with pyenv install ?如何找出可以使用pyenv install安装的 Python 版本?

pyenv accepts a switch to the install command to list available versions: --list , or -l for short: pyenv 接受到install命令的切换以列出可用版本: --list-l简称:

$ pyenv install -l
Available versions:
  2.1.3
  2.2.3
  2.3.7
  2.4.0
  2.4.1
  2.4.2
...

Before running pyenv install -l, you may need to update pyenv as described here Otherwise the list may not include the latest versions.在运行 pyenv install -l 之前,您可能需要按照此处所述更新 pyenv 否则列表可能不包括最新版本。

This should be a comment to Wayne's answer rather than a new answer, but I don't have enough reputation points to comment.这应该是对韦恩的回答的评论,而不是新的回答,但我没有足够的声誉点来评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM