I have two VMs one is development VM and one is Production VM. Development VM has internet access but production VM dont have it and will not get access.
I want some python packages to be installed to run some script. In development VM I installed those packages. Script is running file. I want to migrate this packages to production VM. Where pip is not installed as well as internet is also not there.
I am looking for a way i can zip the packages migrate it to prod VM using scp and install over there.
I can not directly zip python2.7/site-packages where packages are being installed by pip because there are many unnecessary packages present in development VM. I want only those which are required for script to run with all its dependency.
I tried downloading source tar.gz from https://pypi.org/ and install it through "setup.py install" but it requires so much dependency issues.
I am looking for solution like i create directory all the packages will be installed in that directories with all the dependencies. And i can zip it and put it in other setup.
Also a way so that it doesnt upgrade any of the packages preinstalled.