Transfer Python setup across different PC -


my scenario have 2 laptops fresh installation of windows. use both of them programming.

so, lets suppose install various python modules/packages in 1 of laptop. there way can clone complete python setup on other laptop. reason internet connection slow don't want download same module or packages twice , install them again.

i know can download modules in zip file, transfer them on other , run python setup.py install going use pip install modules.

anyways, wondering if cloning of python setup possible.

here different suggestion, recommended if want synchronize packages between 2 pcs , not cloning once.

it works if install packages pip. not work packages not installable/installed pip.

  1. set pip cache network storage / usb stick accessible both pcs (see https://stackoverflow.com/a/4806458/851737 instructions)
  2. freeze current package environment source pc requirements file:

    $ pip freeze > req.txt

  3. copy req file target pc , install packages:

    $ pip install -r req.txt

if put req.txt under vcs can automate , synchronize process smoothly.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -