简体   繁体   English

如何找到我的Python安装中的VM?

[英]How to find out which VM i have in my Python installation?

I installed Python in my PC. 我在我的电脑上安装了Python。 how to find out which VM came with it. 如何找出它附带的VM。

is it cpython or ipython or jpython? 是cpython还是ipython还是jpython?

import platform
platform.python_implementation()

From the documentation: 从文档:

platform.python_implementation()

     Returns a string identifying the Python implementation.
     Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’.

http://docs.python.org/2/library/platform.html http://docs.python.org/2/library/platform.html

Run this in command prompt 在命令提示符下运行它

python -c "from platform import python_implementation; print python_implementation()" python -c“来自平台导入python_implementation; print python_implementation()”

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

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