Hacker News new | ask | show | jobs
by overgard 4533 days ago
How does ipy work with virtual envs? I've always admired the feature list, but my assumption is that it doesn't really run in a virtual env, would that be accurate?
2 comments

it works fine with virtualenvs, on osx, you can do

    virtualenv env
    . ./env/bin/activate
    easy_install readline
    pip install ipython
on linux, you can avoid the readline install. i have no idea what the windows scene is, but at least for the past four or so years, i've never had a problem with virtualenvs and ipython.
On windows it's the same. Although I think I usually install ipython outside of virtualenvs, because I tend to always use it.
It prints a warning if you're running ipython inside a virtualenv that some features might not work but in that case, you can just install ipython itself inside the venv (I haven't yet found any problems caused by using ipython inside a venv). Using a python2 ipython inside a python3 venv might not be a good idea, but you probably knew that already :)