Is there a way to back up Python modules?

Is there a way to back up Python modules? I installed a lot of modules. If my system does not work properly, I will lose them all. Is there any way to do this?

+3
source share
1 answer

If you installed them using pip, you can use pip freezefor a list of installed modules. Save this to a file and use pip install -r fileon the new system to install the modules from the file.

+7
source

All Articles