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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -