iPython runs on Python 3 instead of Python 2

Daniel W.

I've installed iPython via pip. However, it runs on Python 3. How do I get my system to differentiate between iPython and iPython3? I'd like iPython to run on Python 2.

Fabby

iPython is a python3 script itself so go to a terminal and type:

sudo nano /usr/local/bin/ipython

and change python3 into the default python and it'll run Python 2.

If that doesn't work, ensure you've got a compatible version of Python and iPython.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

iPython 3 uses Python 2 instead of Python 3

From Dev

iPython 3 uses Python 2 instead of Python 3

From Dev

Anaconda: Python 3 and 2 in IPython/Jupyter Notebook

From Dev

apache2 - runs python 2.6, instead of 2.7

From Dev

Have IPython run using Python 3 and not Python 2

From Dev

Ipython is using python 3.5 instead of 2.7

From Dev

Ipython is using python 3.5 instead of 2.7

From Dev

VSCode running Python 2 instead of 3

From Dev

Switching to ipython for python3?

From Dev

Change IPython 3 for Python 3 kernel to python2 for the cluster too

From Dev

FreeBSD: using python3 in uwsgi instead of python2

From Dev

Mercurial fails with missing attribute using Python 2 instead of Python 3

From Java

Using both Python 2.x and Python 3.x in IPython Notebook

From Dev

debhelper instructed to use python3, but runs setup.py with python2

From Dev

How to write an ipython alias which executes in python instead of shell?

From Dev

for loop in thread runs once in Python 3

From Dev

Else statement in Python 3 always runs

From Dev

Ubuntu 16: pip install installs to python 3 instead of 2

From Dev

How can I make the "python" command in terminal, run python3 instead of python2?

From Dev

PHP exec command runs python script but not python3

From Dev

Disco Dingo PyCharm 'Running virtualenv with interpreter /usr/bin/python2' while everything else runs Python 3

From Dev

How to get Gunicorn to use Python 3 instead of Python 2 (502 Bad Gateway)

From Dev

How can I specify rmarkdown to use python3 instead python 2?

From Dev

Change "Edit with IDLE" default to python 3.X instead of python 2.X on windows

From Dev

Why the virtual environment runs system Python 2.7 instead of virtual Python 3.6

From Dev

Created an Anaconda python3 environment but it still loads ipython 2.7.6

From Java

ipython3 does not work in the terminal with python3.7

From Dev

How to inspect generators in the repl/ipython in Python3

From Dev

ipython3 does not work in the terminal with python3.7

Related Related

  1. 1

    iPython 3 uses Python 2 instead of Python 3

  2. 2

    iPython 3 uses Python 2 instead of Python 3

  3. 3

    Anaconda: Python 3 and 2 in IPython/Jupyter Notebook

  4. 4

    apache2 - runs python 2.6, instead of 2.7

  5. 5

    Have IPython run using Python 3 and not Python 2

  6. 6

    Ipython is using python 3.5 instead of 2.7

  7. 7

    Ipython is using python 3.5 instead of 2.7

  8. 8

    VSCode running Python 2 instead of 3

  9. 9

    Switching to ipython for python3?

  10. 10

    Change IPython 3 for Python 3 kernel to python2 for the cluster too

  11. 11

    FreeBSD: using python3 in uwsgi instead of python2

  12. 12

    Mercurial fails with missing attribute using Python 2 instead of Python 3

  13. 13

    Using both Python 2.x and Python 3.x in IPython Notebook

  14. 14

    debhelper instructed to use python3, but runs setup.py with python2

  15. 15

    How to write an ipython alias which executes in python instead of shell?

  16. 16

    for loop in thread runs once in Python 3

  17. 17

    Else statement in Python 3 always runs

  18. 18

    Ubuntu 16: pip install installs to python 3 instead of 2

  19. 19

    How can I make the "python" command in terminal, run python3 instead of python2?

  20. 20

    PHP exec command runs python script but not python3

  21. 21

    Disco Dingo PyCharm 'Running virtualenv with interpreter /usr/bin/python2' while everything else runs Python 3

  22. 22

    How to get Gunicorn to use Python 3 instead of Python 2 (502 Bad Gateway)

  23. 23

    How can I specify rmarkdown to use python3 instead python 2?

  24. 24

    Change "Edit with IDLE" default to python 3.X instead of python 2.X on windows

  25. 25

    Why the virtual environment runs system Python 2.7 instead of virtual Python 3.6

  26. 26

    Created an Anaconda python3 environment but it still loads ipython 2.7.6

  27. 27

    ipython3 does not work in the terminal with python3.7

  28. 28

    How to inspect generators in the repl/ipython in Python3

  29. 29

    ipython3 does not work in the terminal with python3.7

HotTag

Archive