Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPython and virtualenv: ignoring site-packages

Does anyone know how to get IPython to ignore site-packages in the context of a virtualenv that was created with the --no-site-packages flag?

like image 949
Keith Hughitt Avatar asked Sep 07 '11 14:09

Keith Hughitt


1 Answers

ipython is not virtualenv aware. There are several examples on the web of how to make ipython understand virtualenvs: for instance here and here. That said, you may need to manipulate the environment a little more than these examples to remove the global site-packages dir(s) from the ipython's path.

like image 165
Wolf Avatar answered Sep 25 '22 18:09

Wolf