IPython and virtualenv: ignoring site-packages

2019-02-16 22:39发布

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条回答
孤傲高冷的网名
2楼-- · 2019-02-16 23:14

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.

查看更多
登录 后发表回答