Blankman
Blankman

Reputation: 266900

Is my pip with virtualenv working? creating a new virtualenvironment and it says django already satisfied?

I installed pip, virutalenv and set my WORKON_HOME etc. according to the insturctions.

Now I did this:

mkvirtualenv test1

then did:

pip install django

and got:

Requirement already satisfied (use --upgrade to upgrade): django in /Library/Python/2.6/site-packages

In terminal, it does have (test1) at my prompt....

Does this just mean, no need to download and install since we found and copied it locally?

Actually doing lssitepackages doesn't show django...what's wrong here?

Upvotes: 0

Views: 230

Answers (2)

GregB
GregB

Reputation: 1656

Do this instead:

mkvirtualenv --no-site-packages test1

Then, your env will be actually clean and isolated.

Upvotes: 2

Adam Vandenberg
Adam Vandenberg

Reputation: 20641

On OS X, that folder in /Library is in the default search path, so if Django got installed in there, it will satisfy the dependency for pip. Maybe you wanted to use the --no-site-packages option when creating the virtual env?

Upvotes: 1

Related Questions