1👍
✅
When you use virtualenv
, pip install will save the package into the virtual environment site-packages directory.
Additionally, if you use virtualenvwrapper
, you can use cdsitepackages
command to change to site-packages directory . then you cd oscar
from there.
In my case, django-oscar
is located under: /home/myname/.virtualenvs/myprojectenv/lib/python3.4/site-packages/oscar/
But you are not suppose to modify anything in the site-packages. Because it is managed by the third party. (You shouldn’t modify django-oscar library directly, it won’t be maintainable. If you do so, then you will lose the ability to update the packages automatically).
👤Yeo
Source:stackexchange.com