[Tutor] Ipython Queries
Oscar Benjamin
oscar.j.benjamin at gmail.com
Sat Mar 14 23:17:44 CET 2015
On 14 March 2015 at 09:53, Steven D'Aprano <steve at pearwood.info> wrote:
> On Fri, Mar 13, 2015 at 10:39:50PM +0530, Santosh Kumar wrote:
>> Hi All,
>>
>> I have installed both python2 and python3 in my system . When i used
>> ipython it by default goes to python2 base. How/what is the easy way to
>> swith between python2 and python3 ?
>
> I don't think there is an easy way on Windows, but I could be wrong. You
> could try asking on a dedicated iPython mailing list. If you get an
> answer, please come back and tell us here so we can learn too.
When you install ipython (or any Python package) you install it for a
particular Python version. You haven't said how you installed either
of the Python versions or ipython or which version of Python you
installed ipython for.
Assuming that you have installed ipython for Python 3 then you may be
able to run ipython for Python 3 by typing one of the following in a
terminal:
$ ipython3
$ python3 -m IPython
$ py -3 -m IPython
(Note carefully that the I and P at the start of IPython in the last
two examples are capitalised - the first example is all lower case).
You may find that ipython is in the "programs" menu on Windows. I'm
not really sure how that stuff works on newer versions of Windows
though.
Without knowing more about your setup it's hard to be specific about
what you should do. What OS are you using (e.g. Windows 8?)? How did
you install Python 2 and Python 3 and which versions (e.g. 2.7 and
3.4?). How did you install ipython? Which version of Python did you
install it for? Do you know what folder the Python installations are
in (e.g. C:\Python34)?
Oscar
More information about the Tutor
mailing list