[IPython-dev] EPD, virtualenv, ipython

Satrajit Ghosh satra at mit.edu
Thu Jan 27 20:21:30 EST 2011


thanks robert and andrew.

indeed installing ipython within the virtualenv solved the problem.

cheers,

satra

On Thu, Jan 27, 2011 at 4:03 PM, Andrew Wilson <wilson.andrew.j at gmail.com>wrote:

>
>
> On Thu, Jan 27, 2011 at 2:22 PM, Satrajit Ghosh <satra at mit.edu> wrote:
>
>> hi,
>>
>> i've installed EPD 6.3 x64 on an ubuntu machine and then i installed
>> virtualenvwrapper and pip. i setup a new virtual environment and
>> easy_install nibabel. if i launch ipython, it invokes the correct ipython
>> from EPD but i cannot import nibabel. if i simply launch python, i can
>> import nibabel.
>>
>
>
> I'm not so familiar with the hows and whys, but this is a general behavior
> of ipython. There are at least two common workarounds:
>
> i)  install ipython in your virtualenv (and all of the other virtualenvs
> you want to use ipython in)
> ii) inject your virtualenv into sys.path as ipython starts up - this blog
> post contains a nice implementation of that:
> http://igotgenes.blogspot.com/2010/01/interactive-sandboxes-using-ipython.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110127/c9f2bad0/attachment.html>


More information about the IPython-dev mailing list