python - Do you have to reinstall modules for different projects, while using virtualenv? -
in python, let's have 2 projects, , b. let's both projects use numpy, , pandas, b additionally uses pygame. if use virtualenv this, create environment each, , install numpy , pandas in each (twice)? if so, wouldn't waste lot of time? large modules such numpy, pandas, , matplotlib?
best practice imho this. can use
pip freeze > requirements.txt pip install -r requirements.txt
to batch install modules.
Comments
Post a Comment