Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21348
| References | <5849344.1361.1331154163099.JavaMail.geo-discussion-forums@pbls8> |
|---|---|
| Date | 2012-03-07 13:30 -0800 |
| Subject | Re: Python site-packages permission denied? |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.488.1331155826.3037.python-list@python.org> (permalink) |
On Wed, Mar 7, 2012 at 1:02 PM, Shane Neeley <shane.neeley@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python site-packages permission denied? Shane Neeley <shane.neeley@gmail.com> - 2012-03-07 13:02 -0800
Re: Python site-packages permission denied? Chris Rebert <clp2@rebertia.com> - 2012-03-07 13:30 -0800
Re: Python site-packages permission denied? Ned Deily <nad@acm.org> - 2012-03-07 21:47 -0800
Re: Python site-packages permission denied? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-03-08 11:34 +0000
csiph-web