Reputation: 79
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
Reputation: 470
Run this in command prompt
python -c "from platform import python_implementation; print python_implementation()"
Upvotes: 0
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