0

I have two versions of python, namely 2.7 and 3.3. Each time I launch ipython it tells me

Python 3.3.4 (default, Feb 11 2014, 15:56:08)

How do I do to launch ipython with the python 2.7? I always use the ipython notebook, do I need also to change something in it?

2
  • what operating system are you using? Commented Mar 4, 2014 at 19:41
  • Linux brother-eye 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 x86_64 GNU/Linux Commented Mar 4, 2014 at 19:59

1 Answer 1

1

You may have only installed IPython for Python 3 on your system. Arch uses Py3 by default, I believe, so when you installed the ipython package and its dependencies it was actually ipython3. Try installing the ipython2 package, along with its dependencies. Once completed, you will have a /usr/bin/ipython2 command for running IPython using Python 2.7.

However, before installing, double-check to see if /usr/bin/ipython2 exists. If it does, you're all set, and shouldn't need to install anything else.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.