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


Groups > comp.lang.python > #86531

Re: Installing PIL without internet access

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <larry.martell@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'mrab': 0.05; 'that?': 0.05; 'hosts': 0.07; 'pil': 0.09; 'tonight.': 0.09; 'python': 0.11; '2.7': 0.14; 'subject:PIL': 0.16; 'subject:access': 0.16; 'subject:internet': 0.16; 'there?': 0.16; 'url:pip': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'first.': 0.19; 'thu,': 0.19; 'version.': 0.19; 'feb': 0.22; 'to:name:python-list@python.org': 0.22; 'install': 0.23; 'connected': 0.24; "i've": 0.25; 'downloaded': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'host': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'reply.': 0.31; 'info.': 0.31; 'larry': 0.31; 'figure': 0.32; 'another': 0.32; 'says': 0.33; 'worked': 0.33; "i'd": 0.34; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; "didn't": 0.36; 'useful': 0.36; 'thanks': 0.36; "i'll": 0.36; 'to:addr:python- list': 0.38; 'files': 0.38; 'issue': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'here:': 0.62; 'real': 0.63; '26,': 0.68; 'flash': 0.69; 'internet': 0.71; '2015': 0.84; 'done:': 0.84; 'mention.': 0.84; 'skip:/ 30': 0.84; 'url:reference': 0.84; 'url:latest': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dcK/KXL8BUCw/UJBMdV4PgyidjCPPosF8mYWfsJhnN8=; b=E0jfywgLaDwVQWhjIUfosDWTSUCxCTKc9J5G404u0s1urHYR+1c6h/Vabiysa8j3QP aXelYTxQus8uoX5/c0a2Qv0hqY/IbGMsegIUiQ2Cd7/NqxyJsEunJXVdfZ0xeG8n2TRX S8vmrI/IPz38zjy2SrwiQedso2fJAYd5wniLSOEU/dch4tsXr8vRxZFi2N/HHJUjxxy9 fANCVf9SwEmHxJush2wtAOWswdnx3IO8+AHg5km4PQLQE9rkYbL7x3EtPN3bHSfATtbn +3O7mWshkF8ZqzmUBePazv+eAzeOrleRHIlorwuxr12DG8Ki7Wer3LzNuja463R7cKfu Pmyg==
MIME-Version 1.0
X-Received by 10.180.77.48 with SMTP id p16mr52226688wiw.89.1424978561461; Thu, 26 Feb 2015 11:22:41 -0800 (PST)
In-Reply-To <54EF5079.7080402@mrabarnett.plus.com>
References <CACwCsY619nCv1UA5ZqH7=qJCUWmM=CUKdJftjpv4vd=uohBJGw@mail.gmail.com> <54EF5079.7080402@mrabarnett.plus.com>
Date Thu, 26 Feb 2015 14:22:41 -0500
Subject Re: Installing PIL without internet access
From Larry Martell <larry.martell@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.19279.1424978568.18130.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424978568 news.xs4all.nl 2907 [2001:888:2000:d::a6]:47620
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86531

Show key headers only | View raw


On Thu, Feb 26, 2015 at 11:57 AM, MRAB <python@mrabarnett.plus.com> wrote:
> On 2015-02-26 15:23, Larry Martell wrote:
>>
>> I have a host that has no access to the internet and I need to install
>> PIL on it. I have an identical host that is on the internet and I have
>> installed it there (with pip). Is there a way I can copy files from
>> the connected host to a flash drive and then copy them to the
>> unconnected host and have PIL working there? Which files would I copy
>> for that?
>>
>> This is on CentOS 6.5, python 2.7
>>
> Have a look here:
>
> https://pip.pypa.io/en/latest/reference/pip_install.html#pip-install-options
>
> It says that you can install from a downloaded file, e.g.:
>
> pip install ./downloads/SomePackage-1.0.4.tar.gz

Thanks for the reply. This is very useful info. But I have another
issue I didn't mention. The system python is 2.6,
but I need the 2.7 version. So anything I install with pip will get
installed to 2.6. To get around that on my connected hosts I've done:

easy_install-2.7 pip

and then I install with pip2.7.

But this unconnected host doesn't have easy_install-2.7, so I'd have
to figure out how to get that first.

I think it will work if I just copy
/usr/lib64/python2.7/site-packages/PIL. That worked on a test system I
tried it on. I'll try on the real system tonight.

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


Thread

Re: Installing PIL without internet access Larry Martell <larry.martell@gmail.com> - 2015-02-26 14:22 -0500

csiph-web