我已经安装了哪个版本的Python? [英] Which version of Python do I have installed?

查看:123
本文介绍了我已经安装了哪个版本的Python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在Windows服务器上运行Python脚本.我怎么知道我拥有哪个版本的Python,它真的很重要吗?

I have to run a Python script on a Windows server. How can I know which version of Python I have, and does it even really matter?

我当时正在考虑更新到最新版本的Python.

I was thinking of updating to the latest version of Python.

推荐答案

python -V

http://docs.python.org/using/cmdline.html#generic-options

--version可能也可以使用(在2.5版中引入)

--version may also work (introduced in version 2.5)

这篇关于我已经安装了哪个版本的Python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆