简体   繁体   中英

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

I installed Python in my PC. how to find out which VM came with it.

is it cpython or ipython or 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

Run this in command prompt

python -c "from platform import python_implementation; print python_implementation()"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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