python - Error while Importing pyexcel-xlxs -
hello i'm using pythonanywhere.com web app, , im finding way import pyexcel me use, seems cant it, because of error. im new web app dev. please. need yur help.
when installed cloning github did this:
:
$ git clone http://github.com/pyexcel/pyexcel-xlsx.git $ cd pyexcel-xlsx $ python setup.py install
but got error here:
13:56 ~ $ git clone http://github.com/pyexcel/pyexcel-xlsx.git cloning 'pyexcel-xlsx'... remote: counting objects: 808, done. remote: compressing objects: 100% (7/7), done. remote: total 808 (delta 1), reused 0 (delta 0), pack-reused 801 receiving objects: 100% (808/808), 167.27 kib | 0 bytes/s, done. resolving deltas: 100% (473/473), done. checking connectivity... done. 13:56 ~ $ cd pyexcel-xlsx 13:57 ~/pyexcel-xlsx (master)$ python setup.py install running install error: can't create or remove files in install directory following error occurred while trying add or remove files in installation directory: [errno 13] permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-22208.write-test' installation directory specified (via --install-dir, --prefix, or distutils default setting) was: /usr/local/lib/python2.7/dist-packages/ perhaps account not have write access directory? if installation directory system-owned directory, may need sign in administrator or "root" account. if not have administrative access machine, may wish choose different installation directory, preferably 1 listed in pythonpath environment variable. information on other options, may wish consult documentation at: https://setuptools.readthedocs.io/en/latest/easy_install.html please make appropriate changes system , try again.
because using pythonanywhere's standard python, , not building virtual environments (which under control) setup.py
trying install system site-packages
directory, have read permissions. if want continue without virtual environments create directory in own area , tell setup.py
install there --install-lib dirname
option.
then set pythonpath
shell environment variable directory export pythonpath=dirname
interpreter adds directory module search path , should go.
Comments
Post a Comment