installation - error: could not create '/Library/Python/2.7/site-packages/xlrd': Permission denied -


i'm trying install xlrd on mac 10.8.4 able read excel files through python.

i have followed instructions on http://www.simplistix.co.uk/presentations/python-excel.pdf

i did this:

  1. unzipped folder desktop

  2. in terminal, cd unzipped folder

  3. $ python setup.py install

this get:

running install running build running build_py creating build creating build/lib creating build/lib/xlrd copying xlrd/__init__.py -> build/lib/xlrd copying xlrd/biffh.py -> build/lib/xlrd copying xlrd/book.py -> build/lib/xlrd copying xlrd/compdoc.py -> build/lib/xlrd copying xlrd/formatting.py -> build/lib/xlrd copying xlrd/formula.py -> build/lib/xlrd copying xlrd/info.py -> build/lib/xlrd copying xlrd/licences.py -> build/lib/xlrd copying xlrd/sheet.py -> build/lib/xlrd copying xlrd/timemachine.py -> build/lib/xlrd copying xlrd/xldate.py -> build/lib/xlrd copying xlrd/xlsx.py -> build/lib/xlrd creating build/lib/xlrd/doc copying xlrd/doc/compdoc.html -> build/lib/xlrd/doc copying xlrd/doc/xlrd.html -> build/lib/xlrd/doc creating build/lib/xlrd/examples copying xlrd/examples/namesdemo.xls -> build/lib/xlrd/examples copying xlrd/examples/xlrdnameapidemo.py -> build/lib/xlrd/examples running build_scripts creating build/scripts-2.7 copying , adjusting scripts/runxlrd.py -> build/scripts-2.7 changing mode of build/scripts-2.7/runxlrd.py 644 755 running install_lib creating /library/python/2.7/site-packages/xlrd error: not create '/library/python/2.7/site-packages/xlrd': permission denied 

why permission denied? thanks

try sudo python setup.py install

the /library folder needs root permission accessed.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -