Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'admin,': 0.07; 'defaults': 0.07; 'python': 0.08; 'command.': 0.09; 'setup.py': 0.09; 'pm,': 0.10; '>>>': 0.12; 'password.': 0.14; 'wrote:': 0.14; 'admin.': 0.16; 'hans': 0.16; 'osx': 0.16; 'subject:installing': 0.16; 'sudo': 0.16; '\xa0to': 0.16; 'permission': 0.16; 'admin': 0.18; 'language': 0.18; 'command': 0.19; 'work,': 0.20; 'header:In- Reply-To:1': 0.21; 'downloaded': 0.21; 'trying': 0.23; '\xa0if': 0.23; 'fri,': 0.23; 'specify': 0.25; 'user.': 0.26; 'thanks.': 0.27; 'tried': 0.27; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'toolkit': 0.30; 'it.': 0.31; 'separate': 0.31; 'file.': 0.32; 'someone': 0.33; 'does': 0.33; 'to:addr:python-list': 0.33; 'actually': 0.33; "isn't": 0.33; "i've": 0.33; "i'll": 0.34; 'install': 0.34; 'file': 0.34; 'core': 0.35; 'there': 0.35; '17,': 0.35; 'begins': 0.35; 'do?': 0.35; 'using': 0.35; 'switch': 0.36; 'idea': 0.36; 'log': 0.36; 'received:google.com': 0.37; 'change': 0.37; 'another': 0.37; 'response': 0.37; 'received:74.125': 0.38; 'execute': 0.38; 'ok,': 0.38; 'word,': 0.38; 'subject:: ': 0.38; 'user': 0.39; 'should': 0.39; 'to:addr:python.org': 0.39; 'unix': 0.40; 'really': 0.40; 'within': 0.60; 'your': 0.60; 'reply': 0.63; 'information,': 0.63; 'account': 0.66; 'here': 0.66; 'natural': 0.68; 'ask.': 0.91 MIME-Version: 1.0 In-Reply-To: <1690460614330036655.243915nige.danton-nospam.com@news.eternal-september.org> References: <4dfbbac3$0$49178$e4fe514c@news.xs4all.nl> <1690460614330036655.243915nige.danton-nospam.com@news.eternal-september.org> Date: Fri, 17 Jun 2011 18:57:13 -0700 Subject: Re: installing NLTK From: Benjamin Kaplan To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Junkmail-Status: score=10/49, host=mpv2.tis.cwru.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020206.4DFC05FC.0062,ss=1,fgs=0, ip=74.125.83.182, so=2010-12-23 16:51:53, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false 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: 52 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308362239 news.xs4all.nl 49178 [::ffff:82.94.164.166]:48596 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7875 On Fri, Jun 17, 2011 at 1:57 PM, Nige Danton wrote= : > Hans Mulder wrote: >> On 17/06/11 21:58:53, Nige Danton wrote: >>> Mac OSX python 2.6.1: I'm trying to install the natural language toolki= t >>> and following the instructions here www.NLTK.org/download I've download= ed >>> the PyYAML package and in a terminal window tried to install it. Howeve= r > >> You're not really giving us enough information, so I'll just guess: > > Sorry. > >> Are you trying a command that begins with "sudo"? > > Good guess. Yes it's sudo python setup.py install > >> If so, then you user password should work, provided you're a member >> of the 'admin' group. =A0To find out, type "groups" in a Terminal >> window. =A0If the response does not include "admin" as a separate > > Ok, thanks. Tried that and the response does not include admin nor my use= r > name > >> word, then you''l have to ask someone to give you admin rights. > > It's a personal computer - there is no one to ask. > > When I try my user password the reply is that it's not in the sudoers fil= e > and the admin password it just rejects. Any idea what I should do? > > -- > Nige Danton - Replace the obvious with g.m.a.i.l You need to switch to the admin user. Sudo will only accept your own password, and only if you're in the "sudoers" file. If you don't want to log out, you can use the "su admin" command to change to admin within that shell- that one is expecting your admin password. Then as the admin, do the sudo python setup.py install and enter your admin password again. The point in all this is that your admin isn't actually an admin. There is only one account on the computer that actually has access to the core system files and that's "root". "sudo" is a command that lets you execute a command as another user by entering your own password. If you don't specify a user, it defaults to using root. An "admin" account on a Unix system is just an account with permission to use the sudo command.