I’ve been developing a Django app and in the process I installed a couple of component using pip (e.g. pip install django-ajax-selects). I just realized that those components aren’t installed in my app directory but somewhere which is machine specific.
First, how do I keep track of all the components I installed. Second, how do I install those component in my app directory so that I can move the code from machine to machine without having to do “pip install …”.
Thanks!
Use virtualenv.
Create a virtualenv, activate it, install what you need, then do
pip freeze > requirements.txtto create a file listing all your requirements. Then on your new machine (also inside a virtualenv) you can dopip install -r requirements.txtto reinstall all those libraries.