IPython和virtualenv:忽略站点包 [英] IPython and virtualenv: ignoring site-packages

查看:185
本文介绍了IPython和virtualenv:忽略站点包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何让IPython在使用--no-site-packages标志创建的virtualenv的上下文中忽略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?

推荐答案

ipython并不是真正意识到的。网上有几个例子让ipython了解virtualenvs:例如这里这里。也就是说,您可能需要比这些示例更多地操作环境,以从ipython的路径中删除全局站点包目录。

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.

这篇关于IPython和virtualenv:忽略站点包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆