Rohan
Rohan

Reputation: 492

How do I find out what Python implementation I am using?

Is there a simple way, like one command, that will enable me to find what Python implementation I am using (CPython, JPython, etc.)?

Upvotes: 1

Views: 480

Answers (1)

Burhan Khalid
Burhan Khalid

Reputation: 174622

Use platform.python_implementation():

>>> import platform
>>> platform.python_implementation()
'CPython'

Upvotes: 7

Related Questions