title: Save all currently installed packages in anaconda to a file
body: <p>I want to make a <code>.txt</code> file with all the python packages my environment is using, and include it in the git repo, so that anyone who needs to run the code, can just make an environment, install all the packages from the list and use it.</p>
  
  <p>I have two questions, first, how can I create that <code>.txt</code> files with all the installed packages? Second, how can someone with the <code>.txt</code> file install everything from it (using pip3?) in their fresh anaconda environment?</p>