I am preparing to format my laptop but I have many python packages installed and accommodated in different virtual environments, the same thing happens with node.js and many modules that I have. Is there a way to make a backup for all my libraries and restore them once formatted? so I would not have to manually install them again.