Skip to content Skip to sidebar Skip to footer

Which Interpreter Is Used By Ipython?

How check which python interpreter is used by a given python shell such as ipython or bpython ? Are these shells just relying on a notion of default interpreter installed on the sy

Solution 1:

That depends on the shell you are using.

On Linux/bash, you can use the command: which python that may answer /usr/bin/python

Then a ls -l /usr/bin/python may give: lrwxrwxrwx 1 root root 9 sept. 17 2018 /usr/bin/python -> python2.7

An other way is to launch python in your shell, you may get something like:

Python 3.8.0rc1 (default, Oct  12019, 21:48:24) 
[GCC 7.4.0] on linux
Type "help", "copyright", "credits"or"license"for more information.
>>> 

Or use the command python --version

Post a Comment for "Which Interpreter Is Used By Ipython?"