Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'output': 0.04; 'importerror:': 0.05; 'python': 0.09; 'sat,': 0.15; '2.7.3': 0.16; 'subject:python2.7': 0.16; 'wrote:': 0.17; 'module': 0.19; 'permission': 0.20; 'import': 0.21; '"",': 0.22; "haven't": 0.23; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'message- id:@mail.gmail.com': 0.27; '>>>>': 0.29; 'python2.7': 0.29; 'install': 0.29; 'figure': 0.30; 'file': 0.32; 'skip:- 10': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'enough': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'information': 0.63; 'more': 0.63; 'jul': 0.65; './configure': 0.84; 'on?': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=WwqWYWVgbc0WLG+Jx5prUkdRcI4ifWaCPRaWZNE9Dnw=; b=lkbpeDRXfVSQ7dpjPbwLk9P9lvnj6XLQ73ZXyMF7oKsahCfRy+TcBbazYs8oojy9zp rinuCV+Wzk5g1G322Osj9iOCAG6TOwqTIOC2/OKKe6p7H3ArPyZbe/Z1z/eNjCF/bFtk 6FlLpPsIinPj8qMqjDrn6EGvxxpgRE7vPxvDeE8RsABJC3uPGrAAAPb/PnW3HE/Dm8wW O0rtU2UlyHnK1e4XB6JMkRbaSTG/Chdorh9S82s5L5NzuDN+Ig/PC0yrfmBljzeDEaeN I2UoiC4G3qQMURReLw94SCHBsl3PV5EF94KZeANZiY7Pc/F/Oy2U2Z4JuekdwgF9hwYu upCA== MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 7 Jul 2012 22:10:32 -0700 Subject: Re: how to compile pygtk in python2.7? From: Benjamin Kaplan To: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlm2Ph5twkMz4h0cXRc7gwtssnqGeAnKMtFxOd6Y5nTNpRF0Dzvarx0VKcQ1lbHJX63taLF X-Junkmail-Whitelist: YES (by domain whitelist at mpv1.tis.cwru.edu) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341724616 news.xs4all.nl 6907 [2001:888:2000:d::a6]:35479 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25034 On Sat, Jul 7, 2012 at 9:47 PM, contro opinion wrote: > 1.download pygtk > > 2.cd /home/tiger/pygtk-2.24.0 > > 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr > 4. make > 5. make install > > tiger@ocean:~$ python2.7 > Python 2.7.3 (default, Jul 1 2012, 14:13:18) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import gtk > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named gtk >>>> > > i can't compile pygtk in python2.7,how to compile it? > > -- What is the output of make and make install? Does it compile successfully, or is there an error? Does the current user have permission to write to /usr? You haven't given us enough information to figure out what's going on?