Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the files downloaded using pip stored in virtualenv?

I am on linux mint 12. I have created a virtualenv called userena. and then i installed django-userena using pip in that virtualenv. I need to edit some django-usrena files. Where are they located?

like image 613
user Avatar asked Apr 09 '12 16:04

user


2 Answers

To see where your virtualenv files are, enable it and issue the following bash command:

$ echo $VIRTUAL_ENV

Similar to your system's Python installation, the packages are stored inside lib/python2.*/site-packages/ directory. Find your package in there and edit the necessary files.

like image 149
Danilo Bargen Avatar answered Oct 08 '22 01:10

Danilo Bargen


You need to know the path to env userena, firstly. Then the installed app usually is in path_to_userena/lib/python2.x/site-packages/. Django apps normally does not contain prefix django-, thus userena here.

Or you could find it in Python by

import os.path, userena
os.path.dirname(userena.__file__)
like image 22
okm Avatar answered Oct 08 '22 00:10

okm