7👍
✅
Usually, you keep a list of your project requirements in requirements.txt
and keep the file at the root of your project. Example requirements.txt
content:
Django==1.6.5
lxml==3.3
On the new computer, you clone the repository containing the project source code (or get it different way), then install the requirements via pip
python package manager:
pip install -r requirements.txt
Also, having separate virtual environments for every project is basically must have.
In order to create the list of requirements from your current python environment (virtual or system-wide), run:
pip freeze > requirements.txt
Source:stackexchange.com