栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何检查Windows上所有已安装的Python版本?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何检查Windows上所有已安装的Python版本?

我才得到答案。通过输入“ py -h”或“ py –help”,我得到了帮助消息:

C:Usersadmin>py -hPython Launcher for Windows Version 3.7.1150.1013usage:py [launcher-args] [python-args] script [script-args]Launcher arguments:-2     : Launch the latest Python 2.x version-3     : Launch the latest Python 3.x version-X.Y   : Launch the specified Python version     The above all default to 64 bit if a matching 64 bit python is present.-X.Y-32: Launch the specified 32bit Python version-X-32  : Launch the latest 32bit Python X version-X.Y-64: Launch the specified 64bit Python version-X-64  : Launch the latest 64bit Python X version-0  --list       : List the available pythons-0p --list-paths : List with paths

告诉我“ -0”(零,而不是字母“ O”)列出了可用的python:

C:Usersadmin>py -0Installed Pythons found by py Launcher for Windows -3.7-64 * -3.7-32 -2.7-64 -2.7-32

而“ -0p”不仅列出版本,而且列出路径:

C:Usersadmin>py -0pInstalled Pythons found by py Launcher for Windows -3.7-64        C:UsersadminAppDataLocalProgramsPythonPython37python.exe * -3.7-32        C:UsersadminAppDataLocalProgramsPythonPython37-32python.exe -2.7-64        C:Python27_64python.exe -2.7-32        C:Python27_32python.exe


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/455941.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号