Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71714

Re: using a new computer and bringing needed libraries to it

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'versions.': 0.07; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'python': 0.11; 'jan': 0.12; 'cares': 0.16; 'folder,': 0.16; 'guessing': 0.16; 'once.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'either.': 0.24; 'entries': 0.24; 'instance,': 0.24; 'lets': 0.24; 'switch': 0.26; 'least': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'skip:p 30': 0.29; "i'm": 0.30; 'fine,': 0.31; 'libraries': 0.31; 'file': 0.32; 'copying': 0.34; 'case,': 0.35; 'one,': 0.35; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'subject:new': 0.38; 'subject:needed': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'does': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'new': 0.61; 'simple': 0.61; 'more': 0.64; 'hoping': 0.75; 'avoids': 0.84; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: using a new computer and bringing needed libraries to it
Date Sat, 17 May 2014 20:29:18 -0400
References <a7f2ad0b-b148-4807-8221-08d42fba72cd@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-71-175-90-87.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
In-Reply-To <a7f2ad0b-b148-4807-8221-08d42fba72cd@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10104.1400372984.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400372984 news.xs4all.nl 2954 [2001:888:2000:d::a6]:38066
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71714

Show key headers only | View raw


On 5/17/2014 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.

Have your tried it? Since Python only cares about the contents of 
site-packages, copying should be fine, at least as far as python is 
concerned. I have copied pythonx.y/Lib/site-packages to 
pythonx.(y+1)/Lib/site-packages more than once.

In each site-packages, I also have python.pth containing, in my case, 
"F:/Python". packages and modules in F:/Python are imported the same as 
if they were in each site-packages. This avoids copying and lets me try 
the same file on multiple versions.

Copying does not copy registry entries or anything outside of 
site-packages. I do not know whether pip, for instance, does either.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

using a new computer and bringing needed libraries to it CM <cmpython@gmail.com> - 2014-05-17 16:53 -0700
  Re: using a new computer and bringing needed libraries to it Ned Batchelder <ned@nedbatchelder.com> - 2014-05-17 20:17 -0400
    Re: using a new computer and bringing needed libraries to it Rustom Mody <rustompmody@gmail.com> - 2014-05-17 20:29 -0700
      Re: using a new computer and bringing needed libraries to it Ben Finney <ben@benfinney.id.au> - 2014-05-18 17:39 +1000
  Re: using a new computer and bringing needed libraries to it Terry Reedy <tjreedy@udel.edu> - 2014-05-17 20:29 -0400
  Re: using a new computer and bringing needed libraries to it Chris Angelico <rosuav@gmail.com> - 2014-05-18 10:30 +1000
  Pip requirements: Machine-readable configuration versus human-audience documentation (was: using a new computer and bringing needed libraries to it) Ben Finney <ben@benfinney.id.au> - 2014-05-18 12:01 +1000

csiph-web