Is it bad to have my virtualenv directory inside my git repository?

Lyle Pratt picture Lyle Pratt · Jul 6, 2011 · Viewed 105k times · Source

I'm thinking about putting the virtualenv for a Django web app I am making inside my git repository for the app. It seems like an easy way to keep deploy's simple and easy. Is there any reason why I shouldn't do this?

Answer

RyanBrady picture RyanBrady · Jul 6, 2011

I use pip freeze to get the packages I need into a requirements.txt file and add that to my repository. I tried to think of a way of why you would want to store the entire virtualenv, but I could not.