Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

installing something to a virtualenv when it's already in site-packages

6 views
Skip to first unread message

nbv4

unread,
Mar 19, 2010, 4:05:03 AM3/19/10
to
I have ipython installed via apt. I can go to the command line and
type 'ipython' and it will work. If I try to install ipython to a
virtualenv, I get this:

$ pip install -E env/ ipython
Requirement already satisfied: ipython in /usr/share/pyshared
Installing collected packages: ipython
Successfully installed ipython

I want ipython in both site-packages as well as in my virtualenv. This
is bad because when I activate the virtualenv, site-packages
disappears and ipython is not available. A work around is to uninstall
ipython from apt, install to the virtualenv, then reinstall in apt. Is
there a better way?

Rolando Espinoza La Fuente

unread,
Mar 19, 2010, 4:26:56 AM3/19/10
to nbv4, pytho...@python.org

I use -U (--upgrade) to force the installation within virtualenv. e.g:

$ pip install -E env/ -U ipython

Regards,

Rolando

0 new messages