thanks robert and andrew. <br><br>indeed installing ipython within the virtualenv solved the problem.<br><br clear="all">cheers,<br><br>satra<br><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 4:03 PM, Andrew Wilson <span dir="ltr"><<a href="mailto:wilson.andrew.j@gmail.com">wilson.andrew.j@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><br><div class="gmail_quote"><div class="im">On Thu, Jan 27, 2011 at 2:22 PM, Satrajit Ghosh <span dir="ltr"><<a href="mailto:satra@mit.edu" target="_blank">satra@mit.edu</a>></span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

hi,<div><br></div><div>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.</div>


</blockquote><div><br></div><div><br></div></div><div>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:</div><div><br></div><div>i)  install ipython in your virtualenv (and all of the other virtualenvs you want to use ipython in)</div>


<div>ii) inject your virtualenv into sys.path as ipython starts up - this blog post contains a nice implementation of that: <a href="http://igotgenes.blogspot.com/2010/01/interactive-sandboxes-using-ipython.html" target="_blank">http://igotgenes.blogspot.com/2010/01/interactive-sandboxes-using-ipython.html</a></div>


</div>
</blockquote></div><br>