IPython and virtualenv: ignoring site-packages

后端 未结 1 1961
死守一世寂寞
死守一世寂寞 2021-01-12 04:12

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条回答
  • 2021-01-12 04:23

    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.

    0 讨论(0)
提交回复
热议问题