Install packages and create requirements file