Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'up-to-date': 0.14; "wouldn't": 0.14; 'being,': 0.16; 'folder,': 0.16; 'guessing': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'install': 0.23; 'header :User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'switch': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'newer': 0.30; "i'm": 0.30; 'too.': 0.31; 'libraries': 0.31; 'file': 0.32; 'probably': 0.32; 'computer.': 0.33; 'copying': 0.34; 'one,': 0.35; 'point.': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'doing': 0.36; "i'll": 0.36; 'list': 0.37; 'subject:new': 0.38; 'subject:needed': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'called': 0.40; 'new': 0.61; 'simple': 0.61; 'home': 0.69; 'computers': 0.72; 'hoping': 0.75 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: using a new computer and bringing needed libraries to it Date: Sat, 17 May 2014 20:17:05 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400372406 news.xs4all.nl 2913 [2001:888:2000:d::a6]:57851 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71711 On 5/17/14 7:53 PM, CM wrote: > If I want to switch my work from one computer to a new one, and I have lots of various libraries installed on the original computer, what's the best way to switch that all to the new computer? I'm hoping there is some simple way like just copying the Python/Lib/site-packages folder, but I'm also guessing this isn't sufficient. I was hoping I wouldn't have to just one-by-one install all of those libraries again on the newer computer. > > I probably want to develop on BOTH these computers for the time being, too. One is at home and one is at a "remote site"/secret lair. And then I'll be doing it again when I buy a newer computer at some point. > > Thanks. > Make a list of the packages you need. Put it in a file called requirements.txt. Then install them with: $ pip install -r requirements.txt Keep that file up-to-date as you add new requirements. -- Ned Batchelder, http://nedbatchelder.com