Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to backup Python modules?

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

like image 615
Eray Erdin Avatar asked Aug 31 '25 17:08

Eray Erdin


1 Answers

If you installed them with pip, you can use pip freeze to list the currently installed modules. Save this to a file and use pip install -r file on a new system to install the modules from the file.

like image 174
desbo Avatar answered Sep 02 '25 08:09

desbo