繁体   English   中英

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

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

我在我的电脑上安装了Python。 如何找出它附带的VM。

是cpython还是ipython还是jpython?

import platform
platform.python_implementation()

从文档:

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

在命令提示符下运行它

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

暂无
暂无

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

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