Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71714
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: using a new computer and bringing needed libraries to it |
| Date | 2014-05-17 20:29 -0400 |
| References | <a7f2ad0b-b148-4807-8221-08d42fba72cd@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10104.1400372984.18130.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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