Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to backup python dependencies or modules already installed

i have installed many python modules plugins and libraries in my centos system. Now i don't want to install each thing again on separate computers.

Is there any way i can make the package like rpm or any other thing so that when i install in in new location all the modules, dependencies also gets installed and everytime i install new thing i can update the install package

like image 842
Mirage Avatar asked Feb 24 '23 00:02

Mirage


1 Answers

If you have installed the packages with pip (an improved easy_install), you can just do pip freeze > my-reqs.txt to get a list and versions of the installed packages. There is also some option to install using the reqs file, which I can not remember right now.

Pip is meant to companion virtualenv, which can be used to handle per project requirements of dependent packages.

like image 143
peterhil Avatar answered Feb 26 '23 21:02

peterhil