LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copying python modules form other machine (https://www.linuxquestions.org/questions/linux-newbie-8/copying-python-modules-form-other-machine-4175454504/)

project.linux.proj 03-18-2013 05:09 AM

copying python modules form other machine
 
Hi,

I want to copy Python modules from one machine to other. Both have same version installed. Can anybody let me know the steps to copy modules from other machine and if it doesn't work i should revert back the changes.

My motive is to install same modules on new machine and the new machine has not internet.


Source Python ( old machine )
$ python2.7 -V
Python 2.7

Destination Python ( New Machine )
# python2.7 -V
Python 2.7.3


Thanks,

pan64 03-18-2013 06:01 AM

probably you need to copy the whole directory structure (tarred and zipped) /usr/lib/python2.7 and /usr/lib/pyshared and your other python libs. But it also depends on the module you installed.
You need to save the original dirs (move or rename them).


All times are GMT -5. The time now is 03:13 PM.