Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'subject:Python': 0.05; 'mess': 0.07; 'python': 0.08; 'module?': 0.09; 'error:': 0.10; 'install"': 0.16; 'installs': 0.16; 'skip:/ 50': 0.16; 'subject:permission': 0.16; 'cc:addr:python-list': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; 'command': 0.24; 'cc:2**0': 0.26; 'stuff': 0.26; 'tried': 0.27; 'says': 0.27; 'separate': 0.28; 'permission': 0.28; 'message- id:@mail.gmail.com': 0.29; 'installing': 0.29; 'onto': 0.29; 'skip:b 20': 0.29; 'cc:addr:python.org': 0.29; 'correct': 0.29; 'pm,': 0.29; 'generally': 0.30; 'chris': 0.30; 'subject:?': 0.31; 'instead.': 0.32; 'running': 0.34; 'denied': 0.34; 'copying': 0.35; 'install': 0.35; 'received:209.85.214': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'uses': 0.38; 'received:209': 0.39; 'skip:s 40': 0.40; 'sender:addr:chris': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=BG0i4BZJVVXfXWQjiTknF81HwRvPy8quPMtJD3HbiuA=; b=PkdLp6UhIe/cYUVs+NXbi+G1leKtTvfo8vzs+EglhvkTfeZIx24048UQMzZhjO7bES xxP4etWgAA0STEIgvOlq+gJ9wESjCBRkM1uq8eZwcamlp2jU+IMNwhKzgy+LW9YTyQJh wEZF8CVWngObb1Xa7N0uVTJqpjjN9p6MAUqbk= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <5849344.1361.1331154163099.JavaMail.geo-discussion-forums@pbls8> References: <5849344.1361.1331154163099.JavaMail.geo-discussion-forums@pbls8> Date: Wed, 7 Mar 2012 13:30:24 -0800 X-Google-Sender-Auth: BAUUeaDPNiW13ebvbmw2e2DvhuE Subject: Re: Python site-packages permission denied? From: Chris Rebert To: Shane Neeley Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnMPlwVc5S1x581vIvJ2v2mj/vHybzAqnSNpkeCh39UC1r/eMLG1luGFi/prvz0pEu0JLHC Cc: python-list@python.org 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331155826 news.xs4all.nl 6957 [2001:888:2000:d::a6]:58617 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21348 On Wed, Mar 7, 2012 at 1:02 PM, Shane Neeley wrote: > What do I need to do to successfully install a package onto python so that I can use it as a module? > > I have tried in terminal in the correct directory "python2.7 ./setup.py install" but it says permission denied. > > Shanes-MacBook-Pro:seisen-urllib2_file-cf4c4c8 chimpsarehungry$ python2.7.1 ./setup.py install > -bash: python2.7.1: command not found > Shanes-MacBook-Pro:seisen-urllib2_file-cf4c4c8 chimpsarehungry$ python ./setup.py install > running install > running build > running build_py > running install_lib > copying build/lib/urllib2_file.py -> /Library/Python/2.7/site-packages > error: /Library/Python/2.7/site-packages/urllib2_file.py: Permission denied > Shanes-MacBook-Pro:seisen-urllib2_file-cf4c4c8 chimpsarehungry$ You generally shouldn't mess with Mac OS X's system copies of Python. Typically, one installs a separate copy using MacPorts, Fink, or whatever, and uses that instead. In any case, you generally need to `sudo` when installing stuff system-wide. Cheers, Chris