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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.