How do I know which VM I have in my Python installation?

I installed Python on my computer. how to find out which VM came with it.

is it cpython or ipython or ionthon?

+4
source share
2 answers
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

+5
source

Run this on the command line

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

0
source

Source: https://habr.com/ru/post/1524927/


All Articles