如何告诉Homebrew在virtualenv内安装? [英] How to tell Homebrew to install inside virtualenv?

查看:49
本文介绍了如何告诉Homebrew在virtualenv内安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题.我无法同时通过 pip 和源代码来安装MatPlotLib(在Mavericks上安装Matplotlib).我尝试了 brew install matplotlib ,安装成功结束.但是,它是全局安装MatPlotLib的,而不是当前激活的VirtualEnv的内部.

Here's my problem. I can't install MatPlotLib both via pip and from source (Matplotlib installation on Mavericks). I tried brew install matplotlib and the installation successfully ended. However, it installed MatPlotLib globally and not inside the currently activated VirtualEnv.

是否可以告诉brew在当前VirtualEnv中安装软件包?

Is it possible to tell brew to install a package inside the current VirtualEnv?

推荐答案

我帮助维护自制软件python tap.不会也不会被支持,并且可能没有一个简单的方法.

I help maintain the homebrew-python tap. This is not and will not be supported and there probably isn't an easy way to do it.

这是由于Homebrew将软件包安装到Homebrew的前缀的事实,该前缀必须是全局的.Homebrew不了解virtualenvs或如何将软件包安装到其中.进行更改将违反Homebrew设计的核心假设,即软件包始终安装在其私有Homebrew前缀上.

This is due to the fact Homebrew installs packages to Homebrew's prefix, which is necessarily global. Homebrew doesn't know about virtualenvs or how to install packages into them. Changing that would violate a core assumption of Homebrew's design, i.e. that packages are always installed to their private Homebrew prefix.

对不起!

这篇关于如何告诉Homebrew在virtualenv内安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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