Is there a simple way, like one command, that will enable me to find what Python implementation I am using (CPython, JPython, etc.)?
Asked
Active
Viewed 449 times
1
-
https://docs.python.org/3/library/sys.html#sys.implementation – vaultah Jan 17 '16 at 05:44
-
Why do you want to know this? – Burhan Khalid Jan 17 '16 at 05:47
-
Why exactly does it matter? – Rohan Jan 17 '16 at 06:17
1 Answers
6
Use platform.python_implementation()
:
>>> import platform
>>> platform.python_implementation()
'CPython'

Burhan Khalid
- 169,990
- 18
- 245
- 284