ng150716
ng150716

Reputation: 2244

Use homebrew to install applications to virtual enviornment

Is there anyway I can use homewbrew to install packages (like numpy or matplotlib) into isolated virtual environments created using virtualenv, without having the packaged installed system wide.

Upvotes: 0

Views: 102

Answers (2)

user3850
user3850

Reputation:

You can install numpy with pip.

Your problem will probably solved by issuing the following commands:

$ export CFLAGS=-Qunused-arguments
$ export CPPFLAGS=-Qunused-arguments
$ pip install numpy

You can test with

$ python -c 'import numpy'

There are several packages which have this problem at the moment. PIL is another example.

Upvotes: 1

Leigh
Leigh

Reputation: 12496

Use pip inside of the virtualenv and it will isolate the packages to just that virtualenv. Each virtualenv has a local version of pip and will install the packages locally.

Upvotes: 2

Related Questions