kcsomisetty
kcsomisetty

Reputation: 79

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?

Upvotes: 4

Views: 148

Answers (2)

Kuldeep Rishi
Kuldeep Rishi

Reputation: 470

Run this in command prompt

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

Upvotes: 0

mockinterface
mockinterface

Reputation: 14880

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

Upvotes: 5

Related Questions