Executing IPython using Python 3, not Python 2

I have both Python 2 and Python 3 installed, but when I start IPython using ipython

from the terminal, it launches Python 2. How do I get IPython to start Python 3? The IPython link says that you just need to use the command ipython3

from the terminal, but that won't work. This question seems to be asked elsewhere on Stackoverflow, but I don't see a very clear answer.

+3


source to share


1 answer


You need to install ipython for python3, which you can do with pip:

pip3 install ipython

      



Then to start the shell ipython2

just type ipython2

, for ipython3

useipython3

+2


source







All Articles