T
T
TomasHuk2013-07-11 21:45:38
Python
TomasHuk, 2013-07-11 21:45:38

Synchronizing Python folders across computers?

Now I'm learning python. I try it a little at home, then at work. Naturally, I import third-party packages from PyPI into Python, etc. The situation is that I now have C:\Python33 folders of different contents on different computers (at home and at work). With the help of SugarSync I want to try to synchronize them. Will such a chip work? Will python programs start and run correctly on both computers in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Tyslyatsky, 2013-07-12
@TomasHuk

I would advise using virtualenv + requirements.txt and not thinking about synchronization.

V
Valentine, 2013-07-12
@vvpoloskin

Of course, I did not work with SugarSync, but you can definitely use DropBox. Moreover, you are learning to program in python, so make a simple copy script from the dropbox folder.
And if the bitness is different, then I can advise you to still install pip (probably under windows you need to somehow add it to PATH, or call python pip install PACKAGE), and synchronize the tree of installed packages. In structured python code that can be modified, you can get a list of installed packages like this:

import pkgutil
for i in pkgutil.iter_modules():
   print i 

Actually, you get a list, compare it with packages elsewhere, and install the missing ones via pip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question