Issue
I'm using different Django framework version(1.3, 1.4, 1.5) for different projects.
On my laptop, I have to reinstall Django with pip, every time I want to switch to another project.
Is there an easier(less stupid! :D) way, that i can automatically switch to the version I need? Something like NVM for node?
Solution
In my opinion the easiest way is to use a requirements.txt
file for virtualenv
. With a requirements.txt
file you can specify the version and every other person that uses your project can just use pip install -r requirements.txt
.
This is the way how almost all big projects do it (the "pythonic" way).
Here you also have a small introduction.
Answered By - Dave Halter Answer Checked By - Pedro (WPSolving Volunteer)