Re: [pyxl] xlrd, Python 2.7, Mac, install issue

1,588 views
Skip to first unread message

python...@raf.org

unread,
Mar 25, 2013, 6:34:35 PM3/25/13
to python...@googlegroups.com
Eric Smith wrote:

> Hello,
>
> I have downloaded and placed the xlrd package and contents in the folder I
> wish it to be in. I open terminal, run it as advised on the website with
> install and receive the below message.
>
> -------
>
> Erics-MacBook-Air:xlrd-0.9.0 EricSmith$ python setup.py install
> running install
> running build
> running build_py
> running build_scripts
> running install_lib
> creating /Library/Python/2.7/site-packages/xlrd
> error: could not create '/Library/Python/2.7/site-packages/xlrd':
> Permission denied <=======ISSUE
>
> -------
>
> Please let me know if you have had this issue or know what to do.
>
> Thank you,
> Eric

put "sudo" at the start of the command to get the permissions
needed to install the package.

i.e. sudo python setup.py install

p.s. "sudo pip-2.7 install xlrd" is an easier way to install xlrd
(once you have pip installed) as it will download it for you as well.

Eric Smith

unread,
Mar 25, 2013, 7:16:14 PM3/25/13
to python...@googlegroups.com, python...@raf.org
Very smart. I was trying to make sure I had permissions even though I am the only user and admin but didn't think of doing in the same line.

It worked and can now be imported.  I have to research pip, I am assuming you suggest it over easy_intall.

Thank you!

Eric

python...@raf.org

unread,
Mar 26, 2013, 6:27:10 PM3/26/13
to python...@googlegroups.com
Eric Smith wrote:

> Very smart. I was trying to make sure I had permissions even though I am
> the only user and admin but didn't think of doing in the same line.
>
> It worked and can now be imported. I have to research pip, I am assuming
> you suggest it over easy_intall.
>
> Thank you!
> Eric

that's right. pip is the new done thing (and virtualenv (or venv in python-3.3+)).
see http://docs.python-guide.org/en/latest/
and http://docs.python-guide.org/en/latest/starting/installation/

Chris Withers

unread,
Apr 4, 2013, 5:47:19 PM4/4/13
to python...@googlegroups.com
On 26/03/2013 19:27, python...@raf.org wrote:
> that's right. pip is the new done thing (and virtualenv (or venv in python-3.3+)).
> see http://docs.python-guide.org/en/latest/
> and http://docs.python-guide.org/en/latest/starting/installation/

easy_install is fine with virtualenv.

You might also consider buildout.

That said, pip is fine too ;-)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
Reply all
Reply to author
Forward
0 new messages